1) please change 'is' and 'task' around so that it reads nicer:
if (task_is_stopped(t))
instead of the tongue-twister:
if (is_task_stopped(t))
2) please change task_is_loadavg() to something more sensible - i didnt
know what it meant when i first saw it in -mm's sched.c.
task_is_uninterruptible() would be the logical choice ...
Ingo
--