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)
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>

No differences found