path: root/kernel/sched/fair.c
diff options
authorLinus Torvalds <>2016-05-10 11:32:01 -0700
committerLinus Torvalds <>2016-05-10 11:32:01 -0700
commitac2440654df6ac7314e2f8819fe05e7c863a2392 (patch)
treebe0cc8040cc19c67a2dd035aacedb54ab4dd41e6 /kernel/sched/fair.c
parent2d0bd9534c8ddaebee64e1b4b7d621915f65e994 (diff)
parent13b5ab02ae118fc8dfdc2b8597688ec4a11d5b53 (diff)
Merge branch 'sched-urgent-for-linus' of git://
Pull scheduler fixes from Ingo Molnar: "A UP kernel cpufreq fix and a rt/dl scheduler corner case fix" * 'sched-urgent-for-linus' of git:// sched/rt, sched/dl: Don't push if task's scheduling class was changed sched/fair: Fix !CONFIG_SMP kernel cpufreq governor breakage
Diffstat (limited to 'kernel/sched/fair.c')
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 0fe30e66aff1..40748dc8ea3e 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3030,7 +3030,14 @@ static int idle_balance(struct rq *this_rq);
#else /* CONFIG_SMP */
-static inline void update_load_avg(struct sched_entity *se, int update_tg) {}
+static inline void update_load_avg(struct sched_entity *se, int not_used)
+ struct cfs_rq *cfs_rq = cfs_rq_of(se);
+ struct rq *rq = rq_of(cfs_rq);
+ cpufreq_trigger_update(rq_clock(rq));
static inline void
enqueue_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se) {}
static inline void