[RFC PATCH 0/2] Permit reuse of APB timers on other platforms

From: Jamie Iles
Date: Fri Apr 01 2011 - 07:08:21 EST


These patches allow the APB timers to be used by platforms other than
x86. The first patch moves the actual timer handling and
clocksource/clock_event_device abstraction into drivers/clocksource and
converts x86 to use this. The second patch adds a platform_driver to
allow other systems to use them.

I've tested these on an ARM platform with NO_HZ but I don't have an x86
platform with these timers that I can test them on so that's just
compile tested.

Jamie Iles (2):
x86, mrst: share APB timer code with other platforms
clocksource: platform driver for APB timers

arch/x86/Kconfig | 1 +
arch/x86/include/asm/apb_timer.h | 22 +--
arch/x86/kernel/apb_timer.c | 401 ++++-----------------------
drivers/Kconfig | 2 +
drivers/clocksource/Kconfig | 11 +
drivers/clocksource/Makefile | 2 +
drivers/clocksource/dw_apb_timer.c | 291 +++++++++++++++++++
drivers/clocksource/dw_apb_timer_platform.c | 173 ++++++++++++
include/linux/dw_apb_timer.h | 122 ++++++++
9 files changed, 662 insertions(+), 363 deletions(-)
create mode 100644 drivers/clocksource/Kconfig
create mode 100644 drivers/clocksource/dw_apb_timer.c
create mode 100644 drivers/clocksource/dw_apb_timer_platform.c
create mode 100644 include/linux/dw_apb_timer.h

--
1.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/