[PATCH] sched: fix the broken sched_rr_get_interval()

2013-01-07 Thread Zhu Yanhai
The caller of sched_sliced() should pass se.cfs_rq and se as the arguments, however in sched_rr_get_interval() we gave it rq.cfs_rq and se, which made the following compution obviously wrong. The change was introduced by commit 77034937, while it had been correct 'cfs_rq_of' before the commit.

[PATCH] sched: fix the broken sched_rr_get_interval()

2013-01-07 Thread Zhu Yanhai
The caller of sched_sliced() should pass se.cfs_rq and se as the arguments, however in sched_rr_get_interval() we gave it rq.cfs_rq and se, which made the following compution obviously wrong. The change was introduced by commit 77034937, while it had been correct 'cfs_rq_of' before the commit.