From: Peter Zijlstra Date: Mon, 4 May 2009 16:47:44 +0000 (+0200) Subject: perf_counter: x86: fixup nmi_watchdog vs perf_counter boo-boo X-Git-Tag: v2.6.31-rc1~383^2~305 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba77813a2a22d631fe5bc0bf1ec0d11350544b70;p=pandora-kernel.git 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 LKML-Reference: <1241455664.7620.4938.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed