diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-09-07 11:34:50 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-09 14:46:34 -0400 |
commit | 89a1e18731959e9953fae15ddc1a983eb15a4f19 (patch) | |
tree | 5a52e77acb23f47254c94e23eb6ed35a422fce1d /include/linux/sched.h | |
parent | 8dc85d547285668e509f86c177bcd4ea055bcaaf (diff) |
perf: Provide a separate task context for swevents
Since software events are always schedulable, mixing them up with
hardware events (who are not) can lead to funny scheduling oddities.
Giving them their own context solves this.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Yanmin <yanmin_zhang@linux.intel.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 89d6023c6f82..eb3c1ceec06e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1163,6 +1163,7 @@ struct rcu_node; | |||
1163 | enum perf_event_task_context { | 1163 | enum perf_event_task_context { |
1164 | perf_invalid_context = -1, | 1164 | perf_invalid_context = -1, |
1165 | perf_hw_context = 0, | 1165 | perf_hw_context = 0, |
1166 | perf_sw_context, | ||
1166 | perf_nr_task_contexts, | 1167 | perf_nr_task_contexts, |
1167 | }; | 1168 | }; |
1168 | 1169 | ||