perf_counter: x86: Protect against infinite loops in intel_pmu_handle_irq()
authorIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 06:26:20 +0000 (08:26 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 07:47:06 +0000 (09:47 +0200)
intel_pmu_handle_irq() can lock up in an infinite loop if the hardware
does not allow the acking of irqs. Alas, this happened in testing so
make this robust and emit a warning if it happens in the future.

Also, clean up the IRQ handlers a bit.

[ Impact: improve perfcounter irq/nmi handling robustness ]

Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found