diff options
author | Byungchul Park <byungchul.park@lge.com> | 2015-10-14 18:47:35 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-11-23 09:37:53 +0100 |
commit | 59543275488d18d878cd2ab2b1072efc1e9ac1c4 (patch) | |
tree | 14a2adb44795038e35c9209fb3d509eed53bd15a /include/linux/sched.h | |
parent | d937cdc59e363baf8d5c757d944b13ebfa33e729 (diff) | |
download | blackbird-op-linux-59543275488d18d878cd2ab2b1072efc1e9ac1c4.tar.gz blackbird-op-linux-59543275488d18d878cd2ab2b1072efc1e9ac1c4.zip |
sched/fair: Prepare __update_cpu_load() to handle active tickless
There are some cases where distance between ticks is more than one tick
while the CPU is not idle, e.g. full NOHZ.
However __update_cpu_load() assumes it is the idle tickless case if the
distance between ticks is more than 1, even though it can be the active
tickless case as well. Thus in the active tickless case, updating the CPU
load will not be performed correctly.
Where the current code assumes the load for each tick is zero, this is
(obviously) not true in non-idle tickless case. We can approximately
consider the load ~= this_rq->cpu_load[0] during tickless in non-idle
tickless case.
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1444816056-11886-2-git-send-email-byungchul.park@lge.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions