diff options
Diffstat (limited to 'arch/mips/mips-boards/generic/time.c')
-rw-r--r-- | arch/mips/mips-boards/generic/time.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c index 5e207760826b..557bf961f36a 100644 --- a/arch/mips/mips-boards/generic/time.c +++ b/arch/mips/mips-boards/generic/time.c | |||
@@ -228,9 +228,7 @@ unsigned long __init mips_rtc_get_time(void) | |||
228 | 228 | ||
229 | void __init mips_time_init(void) | 229 | void __init mips_time_init(void) |
230 | { | 230 | { |
231 | unsigned int est_freq, flags; | 231 | unsigned int est_freq; |
232 | |||
233 | local_irq_save(flags); | ||
234 | 232 | ||
235 | /* Set Data mode - binary. */ | 233 | /* Set Data mode - binary. */ |
236 | CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); | 234 | CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); |
@@ -241,11 +239,9 @@ void __init mips_time_init(void) | |||
241 | (est_freq%1000000)*100/1000000); | 239 | (est_freq%1000000)*100/1000000); |
242 | 240 | ||
243 | cpu_khz = est_freq / 1000; | 241 | cpu_khz = est_freq / 1000; |
244 | |||
245 | local_irq_restore(flags); | ||
246 | } | 242 | } |
247 | 243 | ||
248 | void __init mips_timer_setup(struct irqaction *irq) | 244 | void __init plat_timer_setup(struct irqaction *irq) |
249 | { | 245 | { |
250 | if (cpu_has_veic) { | 246 | if (cpu_has_veic) { |
251 | set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch); | 247 | set_vi_handler (MSC01E_INT_CPUCTR, mips_timer_dispatch); |