Commit 2c771a4c authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Alchemy: micro-optimizatize time code.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 310a09d8
...@@ -262,15 +262,10 @@ void __init plat_timer_setup(struct irqaction *irq) ...@@ -262,15 +262,10 @@ void __init plat_timer_setup(struct irqaction *irq)
* we do this. * we do this.
*/ */
if (no_au1xxx_32khz) { if (no_au1xxx_32khz) {
unsigned int c0_status;
printk("WARNING: no 32KHz clock found.\n"); printk("WARNING: no 32KHz clock found.\n");
/* Ensure we get CPO_COUNTER interrupts. /* Ensure we get CPO_COUNTER interrupts. */
*/ set_c0_status(IE_IRQ5);
c0_status = read_c0_status();
c0_status |= IE_IRQ5;
write_c0_status(c0_status);
} }
else { else {
while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S); while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S);
......
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