Commit 526a6770 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] time: MIPSsim's plat_time_init doesn't need to be irq safe.

It's running early during the bootup process so interrupts are still off.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent aea68639
...@@ -101,9 +101,7 @@ unsigned __init get_c0_compare_int(void) ...@@ -101,9 +101,7 @@ unsigned __init get_c0_compare_int(void)
void __init plat_time_init(void) void __init plat_time_init(void)
{ {
unsigned int est_freq, flags; unsigned int est_freq;
local_irq_save(flags);
/* Set Data mode - binary. */ /* Set Data mode - binary. */
CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL);
...@@ -114,6 +112,4 @@ void __init plat_time_init(void) ...@@ -114,6 +112,4 @@ void __init plat_time_init(void)
(est_freq % 1000000) * 100 / 1000000); (est_freq % 1000000) * 100 / 1000000);
cpu_khz = est_freq / 1000; cpu_khz = est_freq / 1000;
local_irq_restore(flags);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment