sched: fix delay accounting regression
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Fri, 9 Nov 2007 21:39:37 +0000 (22:39 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Nov 2007 21:39:37 +0000 (22:39 +0100)
commit9a41785cc43d88397f787a651ed7286a33f8462f
treeab3efa693c573f2b40dbf4d0e3f219f2dc20da22
parentb2be5e96dc0b5a179cf4cb98e65cfb605752ca26
sched: fix delay accounting regression

Fix the delay accounting regression introduced by commit
75d4ef16a6aa84f708188bada182315f80aab6fa. rq no longer has sched_info
data associated with it. task_struct sched_info structure is used by delay
accounting to provide back statistics to user space.

also remove direct use of sched_clock() (which is not a valid thing to
do anymore) and use rq->clock instead.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_stats.h