aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile/oprof.c
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 /drivers/oprofile/oprof.c
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 'drivers/oprofile/oprof.c')
-rw-r--r--drivers/oprofile/oprof.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/oprofile/oprof.c b/drivers/oprofile/oprof.c
index a48294a8ebe8..dc8a0428260d 100644
--- a/drivers/oprofile/oprof.c
+++ b/drivers/oprofile/oprof.c
@@ -107,8 +107,11 @@ static void stop_switch_worker(void)
107 107
108static void switch_worker(struct work_struct *work) 108static void switch_worker(struct work_struct *work)
109{ 109{
110 if (!oprofile_ops.switch_events()) 110 if (oprofile_ops.switch_events())
111 start_switch_worker(); 111 return;
112
113 atomic_inc(&oprofile_stats.multiplex_counter);
114 start_switch_worker();
112} 115}
113 116
114/* User inputs in ms, converts to jiffies */ 117/* User inputs in ms, converts to jiffies */