diff options
author | Thomas Gleixner <[email protected]> | 2011-06-22 19:47:00 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-08-29 12:26:57 +0200 |
commit | c259e01a1ec90063042f758e409cd26b2a0963c8 (patch) | |
tree | dc5910233294b735fd389e0b0aab79cbb03c70a2 /tools/perf/scripts/python | |
parent | c6a389f123b9f68d605bb7e0f9b32ec1e3e14132 (diff) |
sched: Separate the scheduler entry for preemption
Block-IO and workqueues call into notifier functions from the
scheduler core code with interrupts and preemption disabled. These
calls should be made before entering the scheduler core.
To simplify this, separate the scheduler core code into
__schedule(). __schedule() is directly called from the places which
set PREEMPT_ACTIVE and from schedule(). This allows us to add the work
checks into schedule(), so they are only called when a task voluntary
goes to sleep.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected] # 2.6.39+
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions