aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-07-09 08:56:25 -0400
committerRobert Richter <robert.richter@amd.com>2009-07-20 10:43:21 -0400
commit1b294f5960cd89e49eeb3e797860c552b03f2272 (patch)
tree2582a7f6d56c2f34ff956d24eda97b18720aa0ce /arch/x86/oprofile
parent4d015f79e972cea1761cfee8872b1c0992ccd8b2 (diff)
oprofile: Adding switch counter to oprofile statistic variables
This patch moves the multiplexing switch counter from x86 code to common oprofile statistic variables. Now the value will be available and usable for all architectures. The initialization and incrementation also moved to common code. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r--arch/x86/oprofile/nmi_int.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index da6d2ab31c6c..7b3362f9abdb 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -34,11 +34,6 @@ static DEFINE_PER_CPU(unsigned long, saved_lvtpc);
34/* 0 == registered but off, 1 == registered and on */ 34/* 0 == registered but off, 1 == registered and on */
35static int nmi_enabled = 0; 35static int nmi_enabled = 0;
36 36
37
38#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
39extern atomic_t multiplex_counter;
40#endif
41
42struct op_counter_config counter_config[OP_MAX_COUNTER]; 37struct op_counter_config counter_config[OP_MAX_COUNTER];
43 38
44/* common functions */ 39/* common functions */
@@ -253,8 +248,6 @@ static int nmi_switch_event(void)
253 248
254 on_each_cpu(nmi_cpu_switch, NULL, 1); 249 on_each_cpu(nmi_cpu_switch, NULL, 1);
255 250
256 atomic_inc(&multiplex_counter);
257
258 return 0; 251 return 0;
259} 252}
260 253