diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/time.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index d2424b068b7b..7f95f479060f 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -92,6 +92,21 @@ module_init(rtc_generic_init); | |||
92 | 92 | ||
93 | void (*board_time_init)(void); | 93 | void (*board_time_init)(void); |
94 | 94 | ||
95 | static void __init sh_late_time_init(void) | ||
96 | { | ||
97 | /* | ||
98 | * Make sure all compiled-in early timers register themselves. | ||
99 | * | ||
100 | * Run probe() for two "earlytimer" devices, these will be the | ||
101 | * clockevents and clocksource devices respectively. In the event | ||
102 | * that only a clockevents device is available, we -ENODEV on the | ||
103 | * clocksource and the jiffies clocksource is used transparently | ||
104 | * instead. No error handling is necessary here. | ||
105 | */ | ||
106 | early_platform_driver_register_all("earlytimer"); | ||
107 | early_platform_driver_probe("earlytimer", 2, 0); | ||
108 | } | ||
109 | |||
95 | void __init time_init(void) | 110 | void __init time_init(void) |
96 | { | 111 | { |
97 | if (board_time_init) | 112 | if (board_time_init) |
@@ -108,15 +123,5 @@ void __init time_init(void) | |||
108 | local_timer_setup(smp_processor_id()); | 123 | local_timer_setup(smp_processor_id()); |
109 | #endif | 124 | #endif |
110 | 125 | ||
111 | /* | 126 | late_time_init = sh_late_time_init; |
112 | * Make sure all compiled-in early timers register themselves. | ||
113 | * | ||
114 | * Run probe() for two "earlytimer" devices, these will be the | ||
115 | * clockevents and clocksource devices respectively. In the event | ||
116 | * that only a clockevents device is available, we -ENODEV on the | ||
117 | * clocksource and the jiffies clocksource is used transparently | ||
118 | * instead. No error handling is necessary here. | ||
119 | */ | ||
120 | early_platform_driver_register_all("earlytimer"); | ||
121 | early_platform_driver_probe("earlytimer", 2, 0); | ||
122 | } | 127 | } |