mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
[MIPS] Atlas, Malta, SEAD: Don't disable interrupts in mips_time_init().
By the time it's called from time_init interrupts are still disabled. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
54d0a216f4
commit
ece2246ebd
1 changed files with 1 additions and 5 deletions
|
@ -228,9 +228,7 @@ unsigned long __init mips_rtc_get_time(void)
|
||||||
|
|
||||||
void __init mips_time_init(void)
|
void __init mips_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);
|
||||||
|
@ -241,8 +239,6 @@ void __init mips_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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void __init plat_timer_setup(struct irqaction *irq)
|
void __init plat_timer_setup(struct irqaction *irq)
|
||||||
|
|
Loading…
Add table
Reference in a new issue