summaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-07-09 14:56:25 +0200
committerRobert Richter <robert.richter@amd.com>2009-07-20 16:43:21 +0200
commit1b294f5960cd89e49eeb3e797860c552b03f2272 (patch)
tree2582a7f6d56c2f34ff956d24eda97b18720aa0ce /arch/x86/oprofile
parent4d015f79e972cea1761cfee8872b1c0992ccd8b2 (diff)
downloadlinux-stable-1b294f5960cd89e49eeb3e797860c552b03f2272.tar.gz
linux-stable-1b294f5960cd89e49eeb3e797860c552b03f2272.tar.bz2
linux-stable-1b294f5960cd89e49eeb3e797860c552b03f2272.zip
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);
/* 0 == registered but off, 1 == registered and on */
static int nmi_enabled = 0;
-
-#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
-extern atomic_t multiplex_counter;
-#endif
-
struct op_counter_config counter_config[OP_MAX_COUNTER];
/* common functions */
@@ -253,8 +248,6 @@ static int nmi_switch_event(void)
on_each_cpu(nmi_cpu_switch, NULL, 1);
- atomic_inc(&multiplex_counter);
-
return 0;
}