Messages in this thread | | | Date | Tue, 21 Jan 2014 13:59:19 +0800 | From | Alex Shi <> | Subject | Re: [RFC PATCH 1/2] sched/update_avg: avoid negative time |
| |
On 01/21/2014 01:33 PM, Alex Shi wrote: > rq->avg_idle try to reflect the average idle time between the cpu idle > and first wakeup. But in the function, it maybe get a negative value > if old avg_idle is too small. Then this negative value will be double > counted in next time calculation. Guess that is not the original purpose, > so recalibrate it to zero.
Forget this patch, the avg_idle is impossible to get negative. Sorry for noise!
-- Thanks Alex
| |