summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2016-06-17 15:15:04 -0700
committerKyle Yan <kyan@codeaurora.org>2016-06-21 15:11:21 -0700
commitc876c09f5817c12b9162cf2389be730e94c35d75 (patch)
treeff50e0681ba6fec2acb01dddaafa7d941f61fda4 /include/uapi/linux
parent47c31979a1a96ee9dba1ebc43d0f04a6e7f5ee19 (diff)
sched: kill unnecessary divisions on fast path
The max_possible_efficiency and CPU's efficiency are fixed values which are determined at cluster allocation time. Avoid division on the fast by using precomputed scale factor. Also update_cpu_busy_time() doesn't need to know how many full windows have elapsed. Thus replace unneeded division with simple comparison. Change-Id: I2be1aad3fb9b895e4f0917d05bd8eade985bbccf Suggested-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org> Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions