projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151772d
)
perf, x86, Pentium4: Clear the P4_CCCR_FORCE_OVF flag
author
Lin Ming
<
[email protected]
>
Wed, 25 Aug 2010 21:06:32 +0000
(21:06 +0000)
committer
Ingo Molnar
<
[email protected]
>
Wed, 25 Aug 2010 13:15:33 +0000
(15:15 +0200)
If on Pentium4 CPUs the FORCE_OVF flag is set then an NMI happens
on every event, which can generate a flood of NMIs. Clear it.
Reported-by: Vince Weaver <
[email protected]
>
Signed-off-by: Lin Ming <
[email protected]
>
Signed-off-by: Cyrill Gorcunov <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/cpu/perf_event_p4.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_p4.c
b/arch/x86/kernel/cpu/perf_event_p4.c
index febb12cea795268f224a9d39937e3f27bb86bf67..7e578e9cc58bd5062d30776d431dabdcf724ac67 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_p4.c
+++ b/
arch/x86/kernel/cpu/perf_event_p4.c
@@
-497,6
+497,8
@@
static int p4_hw_config(struct perf_event *event)
event->hw.config |= event->attr.config &
(p4_config_pack_escr(P4_ESCR_MASK_HT) |
p4_config_pack_cccr(P4_CCCR_MASK_HT | P4_CCCR_RESERVED));
+
+ event->hw.config &= ~P4_CCCR_FORCE_OVF;
}
rc = x86_setup_perfctr(event);