Repository navigation
Commit c259e01
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 <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable@kernel.org # 2.6.39+
Link: http://lkml.kernel.org/r/20110622174918.813258321@linutronix.de
Signed-off-by: Ingo Molnar <mingo@elte.hu>1 parent c6a389f commit c259e01
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4279 | 4279 | | |
4280 | 4280 | | |
4281 | 4281 | | |
4282 | | - | |
| 4282 | + | |
4283 | 4283 | | |
4284 | | - | |
| 4284 | + | |
4285 | 4285 | | |
4286 | 4286 | | |
4287 | 4287 | | |
| |||
4369 | 4369 | | |
4370 | 4370 | | |
4371 | 4371 | | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
4372 | 4377 | | |
4373 | 4378 | | |
4374 | 4379 | | |
| |||
4435 | 4440 | | |
4436 | 4441 | | |
4437 | 4442 | | |
4438 | | - | |
| 4443 | + | |
4439 | 4444 | | |
4440 | 4445 | | |
4441 | 4446 | | |
| |||
4463 | 4468 | | |
4464 | 4469 | | |
4465 | 4470 | | |
4466 | | - | |
| 4471 | + | |
4467 | 4472 | | |
4468 | 4473 | | |
4469 | 4474 | | |
| |||
5588 | 5593 | | |
5589 | 5594 | | |
5590 | 5595 | | |
5591 | | - | |
| 5596 | + | |
5592 | 5597 | | |
5593 | 5598 | | |
5594 | 5599 | | |
| |||
0 commit comments