]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Provide a separate task context for swevents
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 7 Sep 2010 15:34:50 +0000 (17:34 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Sep 2010 18:46:34 +0000 (20:46 +0200)
commit0c54fde774f824f661c332711be1deb7dc3470d0
tree5a52e77acb23f47254c94e23eb6ed35a422fce1d
parent66f22a565a5c92fa6340cf3cb1ec497d7bfc6d49
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>
include/linux/perf_event.h
include/linux/sched.h
kernel/hw_breakpoint.c
kernel/perf_event.c