sched/fair: jump to max OPP when crossing UP threshold
authorSteve Muckle <smuckle@linaro.org>
Thu, 25 Jun 2015 13:12:33 +0000 (14:12 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:42:05 +0000 (12:42 +0000)
commit8bd4863f301d6eb99f7a20651738c16c5f4edbab
tree18742d5876af0aec675262db6b7aa6ad52b12738
parent6700c5c1708013afe68aa81258bf07ae7b5d945a
sched/fair: jump to max OPP when crossing UP threshold

Since the true utilization of a long running task is not detectable
while it is running and might be bigger than the current cpu capacity,
create the maximum cpu capacity head room by requesting the maximum
cpu capacity once the cpu usage plus the capacity margin exceeds the
current capacity. This is also done to try to harm the performance of
a task the least.

Original fair-class only version authored by Juri Lelli
<juri.lelli@arm.com>.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Steve Muckle <smuckle@linaro.org>
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/sched.h