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:
parent
3967da2dd1
commit
c413707037
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue