From: Ralf Baechle Date: Tue, 23 Oct 2007 02:04:19 +0000 (+0100) Subject: [MIPS] Alchemy: micro-optimizatize time code. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2c771a4c28a71b6acc0bd6b7ef56e0a1849c9b09;p=openwrt%2Fstaging%2Fblogic.git [MIPS] Alchemy: micro-optimizatize time code. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index c8116bcacf55..0673fc0e36b6 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c @@ -262,15 +262,10 @@ void __init plat_timer_setup(struct irqaction *irq) * we do this. */ if (no_au1xxx_32khz) { - unsigned int c0_status; - printk("WARNING: no 32KHz clock found.\n"); - /* Ensure we get CPO_COUNTER interrupts. - */ - c0_status = read_c0_status(); - c0_status |= IE_IRQ5; - write_c0_status(c0_status); + /* Ensure we get CPO_COUNTER interrupts. */ + set_c0_status(IE_IRQ5); } else { while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S);