AU1xxxx mips_timer_interrupt() fixes
PATCH 1/1 AU1xxxx mips_timer_interrupt() fixes
common/au1000/irq.c was missing a mips_timer_interrupt() prototype, whereas in common/au1000/time.c the actual mips_timer_interrupt() implementation was missing an irq_exit() invocation, causing a preempt_count() leak
---
arch/mips/au1000/common/irq.c | 1 + arch/mips/au1000/common/time.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
d0a263ef156cf498d97cf6b2f37ba4d8d4a92559
arch/mips/au1000/common/irq.c +1 -0
@@ -68,6 +68,7 @@extern void set_debug_traps (void );extern irq_cpustat_t irq_stat [NR_CPUS ]; +extern void mips_timer_interrupt (struct pt_regs *regs);static void setup_local_irq (unsigned int irq,int type,int int_req);static unsigned int startup_irq (unsigned int irq);
arch/mips/au1000/common/time.c +1 -0
@@ -116,6 +116,7 @@ void mips_timer_interrupt(struct pt_regs null:ack_r4ktimer (0 ); +irq_exit (); }#ifdef CONFIG_PM
Signature · 1 line
1.2.4
Quoted 3 lines · Herbert Valerio Riedel
common/au1000/irq.cwas missing amips_timer_interrupt()prototype, whereas incommon/au1000/time.cthe actualmips_timer_interrupt()implementation was missing anirq_exit()invocation, causing apreempt_count()leak
mips_timer_interrupt is essentially duplicated code, so this kind of breakage is entirely avoidable but fixing and all the other time code braindamage it will be a large project, so I applied this patch to 2.6.16-stable and master.
Thanks,
Ralf