sched: Remove one division operation in find_busiest_queue()
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Tue, 6 Aug 2013 08:36:41 +0000 (17:36 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 2 Sep 2013 06:26:59 +0000 (08:26 +0200)
commit95a79b805b935f4a7b685aa8a117d916c638323e
treee9c7380555d30bf5eea04219aba179696c82b7e5
parenta4f61cc03e443647211a5ae0ab8f8cda2e9e1043
sched: Remove one division operation in find_busiest_queue()

Remove one division operation in find_busiest_queue() by using
crosswise multiplication:

wl_i / power_i > wl_j / power_j :=
wl_i * power_j > wl_j * power_i

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
[ Expanded the changelog. ]
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1375778203-31343-2-git-send-email-iamjoonsoo.kim@lge.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c