aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-03-19 15:26:12 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-06 03:30:15 -0400
commit4a0deca657f3dbb8a707b5dc8f173beec01e7ed2 (patch)
treeb52fb2d5fa3391f5eac37ca599413b4e8d187c0c /kernel/sched.c
parent01ef09d9ffb5ce9f8d62d1e5206da3d5ca612acc (diff)
perf_counter: generic context switch event
Impact: cleanup Use the generic software events for context switches. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Steven Rostedt <rostedt@goodmis.org> Orig-LKML-Reference: <20090319194233.283522645@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 39e708602169..f76e3c0188a2 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2900,14 +2900,8 @@ unsigned long nr_active(void)
2900 2900
2901/* 2901/*
2902 * Externally visible per-cpu scheduler statistics: 2902 * Externally visible per-cpu scheduler statistics:
2903 * cpu_nr_switches(cpu) - number of context switches on that cpu
2904 * cpu_nr_migrations(cpu) - number of migrations into that cpu 2903 * cpu_nr_migrations(cpu) - number of migrations into that cpu
2905 */ 2904 */
2906u64 cpu_nr_switches(int cpu)
2907{
2908 return cpu_rq(cpu)->nr_switches;
2909}
2910
2911u64 cpu_nr_migrations(int cpu) 2905u64 cpu_nr_migrations(int cpu)
2912{ 2906{
2913 return cpu_rq(cpu)->nr_migrations_in; 2907 return cpu_rq(cpu)->nr_migrations_in;