Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bd9aaa79 authored by Joonsoo Kim's avatar Joonsoo Kim Committed by alexax66
Browse files

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: default avatarJoonsoo Kim <iamjoonsoo.kim@lge.com>
[ Expanded the changelog. ]
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1375778203-31343-2-git-send-email-iamjoonsoo.kim@lge.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>

Signed-off-by: default avatarfranciscofranco <franciscofranco.1990@gmail.com>

Original commit: https://github.com/googyanas/GoogyMax-S6/commit/8a9c248f0ee71ba401f94da3cadc6275a1d0e485
parent 802518ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment