Skip to content

Commit

Permalink
[MIPS] time: MIPSsim's plat_time_init doesn't need to be irq safe.
Browse files Browse the repository at this point in the history
It's running early during the bootup process so interrupts are still off.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Nov 26, 2007
1 parent aea6863 commit 526a677
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/mips/mipssim/sim_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -114,6 +112,4 @@ void __init plat_time_init(void)
(est_freq % 1000000) * 100 / 1000000);

cpu_khz = est_freq / 1000;

local_irq_restore(flags);
}

0 comments on commit 526a677

Please sign in to comment.