[PATCH] [sched] Account the elapse of each period accurately

2015-01-03 Thread Zhihui Zhang
Currently, the decayed values of previous periods can spill into the lower 10 bits of runnable_avg_period. This makes the next period to be less than 1024 us. If we want to decay exactly every 1024us, which I see no reason not to (less math overhead and consistent decay period among all tasks),

[PATCH] [sched] Account the elapse of each period accurately

2015-01-03 Thread Zhihui Zhang
Currently, the decayed values of previous periods can spill into the lower 10 bits of runnable_avg_period. This makes the next period to be less than 1024 us. If we want to decay exactly every 1024us, which I see no reason not to (less math overhead and consistent decay period among all tasks),