sched: Skip load update for idle task

Load statistics for idle tasks is not useful in any manner. Skip load
update for such idle tasks.

CRs-Fixed: 665706
Change-Id: If3a908bad7fbb42dcb3d0a1d073a3750cf32fcf9
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
This commit is contained in:
Srivatsa Vaddagiri 2014-05-16 16:15:50 -07:00 committed by David Keitel
parent 3967da2dd1
commit c413707037

View file

@ -1820,7 +1820,7 @@ void update_task_ravg(struct task_struct *p, struct rq *rq, int update_sum)
int new_window;
u64 wallclock = sched_clock();
if (sched_ravg_window < min_sched_ravg_window)
if (is_idle_task(p) || (sched_ravg_window < min_sched_ravg_window))
return;
do {