lkml.org 
[lkml]   [2011]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2] Permit reuse of APB timers on other platforms
Date
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



\
 
 \ /
  Last update: 2011-04-01 13:11    [W:0.027 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site