diff options
author | Peter Zijlstra <peterz@infradead.org> | 2009-05-04 18:47:44 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-04 19:30:29 +0200 |
commit | ba77813a2a22d631fe5bc0bf1ec0d11350544b70 (patch) | |
tree | 09fd04be43e2c221aff774bf95e7bfb4d213bb17 /include/linux | |
parent | b82914ce33146186d554b0f5c41e4e13693614ce (diff) | |
download | blackbird-op-linux-ba77813a2a22d631fe5bc0bf1ec0d11350544b70.tar.gz blackbird-op-linux-ba77813a2a22d631fe5bc0bf1ec0d11350544b70.zip |
perf_counter: x86: fixup nmi_watchdog vs perf_counter boo-boo
Invert the atomic_inc_not_zero() test so that we will indeed detect the
first activation.
Also rename the global num_counters, since its easy to confuse with
x86_pmu.num_counters.
[ Impact: fix non-working perfcounters on AMD CPUs, cleanup ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241455664.7620.4938.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions