sched/fair: Pass 'rq' to weighted_cpuload()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 24 May 2017 05:29:54 +0000 (10:59 +0530)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 10:18:11 +0000 (12:18 +0200)
commitc7132dd6f0e3b07bd4541cda9040897cc460d855
tree63ff23cb2418a3339db739013dd3c2ee642c6dbf
parent5b713a3d949bd7f8c615a335a8c40297586bc1b1
sched/fair: Pass 'rq' to weighted_cpuload()

weighted_cpuload() uses the cpu number passed to it get pointer to the
runqueue. Almost all callers of weighted_cpuload() already have the rq
pointer with them and can send that directly to weighted_cpuload(). In
some cases the callers actually get the CPU number by doing cpu_of(rq).

It would be simpler to pass rq to weighted_cpuload().

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>
Cc: linaro-kernel@lists.linaro.org
Link: http://lkml.kernel.org/r/b7720627e0576dc29b4ba3f9b6edbc913bb4f684.1495603536.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c