perf_counter: Fix PERF_COUNTER_CONTEXT_SWITCHES for cpu counters
commit10989fb2451763fae6f42d85fa6106c8fd010cf5
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 25 May 2009 12:45:28 +0000 (25 14:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 25 May 2009 12:55:01 +0000 (25 14:55 +0200)
tree34c1b66501633ac3c0c287f72611eccc90ee1bc2
parent6ab423e0eaca827fbd201ca4ae7d4f8573a366b2
perf_counter: Fix PERF_COUNTER_CONTEXT_SWITCHES for cpu counters

Ingo noticed that cpu counters had 0 context switches, even though
there was plenty scheduling on the cpu.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090525124600.419025548@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c