perf_counter: x86: Fix throttling
authorIngo Molnar <mingo@elte.hu>
Wed, 13 May 2009 10:54:01 +0000 (12:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 07:46:56 +0000 (09:46 +0200)
commitf5a5a2f6e69e88647ae12da39f0ff3a510bcf0a6
tree85f7777f0b306fb553a3efc825b5337d301a8e34
parentec3232bdf8518bea8410f0027f870b24d3aa8753
perf_counter: x86: Fix throttling

If counters are disabled globally when a perfcounter IRQ/NMI hits,
and if we throttle in that case, we'll promote the '0' value to
the next lapic IRQ and disable all perfcounters at that point,
permanently ...

Fix it.

[ Impact: fix hung perfcounters under load ]

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