]> err.no Git - linux-2.6/commitdiff
[MIPS] time: MIPSsim's plat_time_init doesn't need to be irq safe.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 30 Oct 2007 15:39:18 +0000 (15:39 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Nov 2007 17:26:13 +0000 (17:26 +0000)
It's running early during the bootup process so interrupts are still off.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mipssim/sim_time.c

index bfaafa38846f7f2650815ffd845066901efa91d0..e39bbe989da34b85a0ec7dbe703efdbef4e5270a 100644 (file)
@@ -101,9 +101,7 @@ unsigned __init get_c0_compare_int(void)
 
 void __init plat_time_init(void)
 {
-       unsigned int est_freq, flags;
-
-       local_irq_save(flags);
+       unsigned int est_freq;
 
        /* Set Data mode - binary. */
        CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL);
@@ -114,6 +112,4 @@ void __init plat_time_init(void)
               (est_freq % 1000000) * 100 / 1000000);
 
        cpu_khz = est_freq / 1000;
-
-       local_irq_restore(flags);
 }