|
@@ -2374,12 +2374,19 @@ static inline void __update_group_entity_contrib(struct sched_entity *se)
|
|
|
se->avg.load_avg_contrib >>= NICE_0_SHIFT;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+static inline void update_rq_runnable_avg(struct rq *rq, int runnable)
|
|
|
+{
|
|
|
+ __update_entity_runnable_avg(rq_clock_task(rq), &rq->avg, runnable);
|
|
|
+ __update_tg_runnable_avg(&rq->avg, &rq->cfs);
|
|
|
+}
|
|
|
#else /* CONFIG_FAIR_GROUP_SCHED */
|
|
|
static inline void __update_cfs_rq_tg_load_contrib(struct cfs_rq *cfs_rq,
|
|
|
int force_update) {}
|
|
|
static inline void __update_tg_runnable_avg(struct sched_avg *sa,
|
|
|
struct cfs_rq *cfs_rq) {}
|
|
|
static inline void __update_group_entity_contrib(struct sched_entity *se) {}
|
|
|
+static inline void update_rq_runnable_avg(struct rq *rq, int runnable) {}
|
|
|
#endif /* CONFIG_FAIR_GROUP_SCHED */
|
|
|
|
|
|
static inline void __update_task_entity_contrib(struct sched_entity *se)
|
|
@@ -2478,12 +2485,6 @@ static void update_cfs_rq_blocked_load(struct cfs_rq *cfs_rq, int force_update)
|
|
|
__update_cfs_rq_tg_load_contrib(cfs_rq, force_update);
|
|
|
}
|
|
|
|
|
|
-static inline void update_rq_runnable_avg(struct rq *rq, int runnable)
|
|
|
-{
|
|
|
- __update_entity_runnable_avg(rq_clock_task(rq), &rq->avg, runnable);
|
|
|
- __update_tg_runnable_avg(&rq->avg, &rq->cfs);
|
|
|
-}
|
|
|
-
|
|
|
/* Add the load generated by se into cfs_rq's child load-average */
|
|
|
static inline void enqueue_entity_load_avg(struct cfs_rq *cfs_rq,
|
|
|
struct sched_entity *se,
|