x86: oprofile: don't set counter width from cpuid on Core2
authorTim Blechmann <tim@klingt.org>
Thu, 19 Feb 2009 16:34:03 +0000 (17:34 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 3 Mar 2009 11:04:22 +0000 (12:04 +0100)
commit780eef9492b16a1543a3b2ae9f9526a735fc9856
treed3c4942a98845558d45e4b36d5350ebf41cde524
parent0fc59d3a01820765e5f3a723733728758b0cf577
x86: oprofile: don't set counter width from cpuid on Core2

Impact: fix stuck NMIs and non-working oprofile on certain CPUs

Resetting the counter width of the performance counters on Intel's
Core2 CPUs, breaks the delivery of NMIs, when running in x86_64 mode.

This should fix bug #12395:

  http://bugzilla.kernel.org/show_bug.cgi?id=12395

Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <20090303100412.GC10085@erda.amd.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/oprofile/op_model_ppro.c