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)
commit9029a5e3801f1cc7cdaab80169d82427acf928d8
treee2acb45f70744ffd5c47c31be67e482df2ef17c4
parent1c80f4b598d9b075a2a0be694e28be93a6702bcc
perf_counter: x86: Protect against infinite loops in intel_pmu_handle_irq()

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>
arch/x86/kernel/cpu/perf_counter.c