]> asedeno.scripts.mit.edu Git - linux.git/commit
sched/fair: Avoid calling sync_entity_load_avg() unnecessarily
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 26 Apr 2018 10:30:51 +0000 (16:00 +0530)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 May 2018 08:00:08 +0000 (10:00 +0200)
commitc976a862ba4869c1e75c39b9b8f1e9ebfe90cdfc
tree00d6e6fe00a742000db7219a8a24d206857acb25
parentf1d88b4468188ddcd2620b8d612068faf6662a62
sched/fair: Avoid calling sync_entity_load_avg() unnecessarily

Call sync_entity_load_avg() directly from find_idlest_cpu() instead of
select_task_rq_fair(), as that's where we need to use task's utilization
value. And call sync_entity_load_avg() only after making sure sched
domain spans over one of the allowed CPUs for the task.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: http://lkml.kernel.org/r/cd019d1753824c81130eae7b43e2bbcec47cc1ad.1524738578.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c