diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-11-08 14:40:59 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-12-24 11:36:38 -0500 |
commit | 6bb27d7349db51b50c40534710fe164ca0d58902 (patch) | |
tree | 8f227c8bbf27b87275302dc133bb2b949b64622f /arch/arm/kernel/time.c | |
parent | 7704c095230e2e9863f3aacd0489a4b4cc00bf45 (diff) |
ARM: delete struct sys_timer
Now that the only field in struct sys_timer is .init, delete the struct,
and replace the machine descriptor .timer field with the initialization
function itself.
This will enable moving timer drivers into drivers/clocksource without
having to place a public prototype of each struct sys_timer object into
include/linux; the intent is to create a single of_clocksource_init()
function that determines which timer driver to initialize by scanning
the device dtree, much like the proposed irqchip_init() at:
http://www.spinics.net/lists/arm-kernel/msg203686.html
Includes mach-omap2 fixes from Igor Grinberg.
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/kernel/time.c')
-rw-r--r-- | arch/arm/kernel/time.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 0b51a7c88157..955d92d265e5 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -30,11 +30,6 @@ | |||
30 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
31 | #include <asm/mach/time.h> | 31 | #include <asm/mach/time.h> |
32 | 32 | ||
33 | /* | ||
34 | * Our system timer. | ||
35 | */ | ||
36 | static struct sys_timer *system_timer; | ||
37 | |||
38 | #if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || \ | 33 | #if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || \ |
39 | defined(CONFIG_NVRAM) || defined(CONFIG_NVRAM_MODULE) | 34 | defined(CONFIG_NVRAM) || defined(CONFIG_NVRAM_MODULE) |
40 | /* this needs a better home */ | 35 | /* this needs a better home */ |
@@ -120,8 +115,6 @@ int __init register_persistent_clock(clock_access_fn read_boot, | |||
120 | 115 | ||
121 | void __init time_init(void) | 116 | void __init time_init(void) |
122 | { | 117 | { |
123 | system_timer = machine_desc->timer; | 118 | machine_desc->init_time(); |
124 | system_timer->init(); | ||
125 | sched_clock_postinit(); | 119 | sched_clock_postinit(); |
126 | } | 120 | } |
127 | |||