sched: fix sched_slice()
authorMike Galbraith <efault@gmx.de>
Fri, 2 Jan 2009 11:16:42 +0000 (12:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 2 Jan 2009 16:10:43 +0000 (17:10 +0100)
commit0a582440ff546e2c6610d1acec325e91b4efd313
tree161a0943091c53bb2154121480b3e26ce5df1769
parentb58602a4bac012b5f4fc12fe6b46ab237b610d5d
sched: fix sched_slice()

Impact: fix bad-interactivity buglet

Fix sched_slice() to emit a sane result whether a task is currently
enqueued or not.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Tested-by: Jayson King <dev@jaysonking.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
 kernel/sched_fair.c |   30 ++++++++++++------------------
 1 file changed, 12 insertions(+), 18 deletions(-)
kernel/sched_fair.c