diff options
| author | Dmitry Adamushko <[email protected]> | 2007-10-15 17:00:07 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2007-10-15 17:00:07 +0200 |
| commit | d02e5ed8d55e2a2b2735232ea1da40ffbf4c0932 (patch) | |
| tree | de972b3b1318deb834f61b6dba967ad32845c229 /scripts | |
| parent | 29f59db3a74b0bdf78a1f5b53ef773caa82692dc (diff) | |
sched: sched_setscheduler() fix
Fix a problem in the 'sched-group' patch for !CONFIG_FAIR_GROUP_SCHED.
description:
sched_setscheduler()
{
...
if (task_running()) p->sched_class->put_prev_entity();
[ this one sets up cfs_rq->curr to NULL ]
...
if (task_running) p->sched_class->set_curr_task();
[ and this one is a _NOP_ (empty) for !CONFIG_FAIR_GROUP_SCHED ]
As a result, the task continues to run with cfs_rq->curr == NULL... no
crashes (due to checks for !NULL in place) but e.g. update_curr()
effectively becomes a NOP... i.e. runtime statistics for this task is
not accounted untill it's rescheduled anew.
Signed-off-by: Dmitry Adamushko <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions