diff options
author | Steve Muckle <smuckle@linaro.org> | 2016-11-11 14:04:43 -0800 |
---|---|---|
committer | Andres Oportus <andresoportus@google.com> | 2017-06-02 08:01:50 -0700 |
commit | f02702dcf231c3258aabd702023286f6c01aaa21 (patch) | |
tree | 495ff802e3b238bcbe60bf25f0e509d95ac8182c /kernel/sched/rt.c | |
parent | 5df19f969e4834548c4cf930c591581e237fccd0 (diff) |
sched: backport cpufreq hooks from 4.9-rc4
The scheduler cpufreq hooks are required by the schedutil cpufreq
governor.
Change-Id: Ied6c46262bb33b7e81bbb3d3d2761124e0c676b7
Signed-off-by: Steve Muckle <smuckle@linaro.org>
[trivial cherry-picking fixes]
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Diffstat (limited to 'kernel/sched/rt.c')
-rw-r--r-- | kernel/sched/rt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 541b8494450e..6bb51d62dca4 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1002,6 +1002,9 @@ static void update_curr_rt(struct rq *rq) if (unlikely((s64)delta_exec <= 0)) return; + /* Kick cpufreq (see the comment in kernel/sched/sched.h). */ + cpufreq_update_this_cpu(rq, SCHED_CPUFREQ_RT); + schedstat_set(curr->se.statistics.exec_max, max(curr->se.statistics.exec_max, delta_exec)); |