Skip to contentSkip to conversation

sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems

PATCH New Abel Vesa 1 participant 1 message May 5, 2015 Scheduler

lore
Share & tools
lore

Abel Vesa

author
#0 lore raw

PATCH 1/1 sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems

If CONFIG_SMP is not defined the build will fail due to function 'gov_cfs_update_cpu' definition missing. Added empty static inline definition for NON-SMP systems.

This patch applies to:
https://git.linaro.org/people/mike.turquette/linux.git sched-freq

---
 kernel/sched/sched.h | 1 +
 1 file changed, 1 insertion(+)
kernel/sched/sched.h +1 -0
index ec23523..3d0996e 100644
@@ -1413,6 +1413,7 @@ static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta)
 #else
 static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta) { }
 static inline void sched_avg_update(struct rq *rq) { }
+static inline void gov_cfs_update_cpu(int cpu) {}
 #endif
 
 extern void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period);
Signature · 1 line
1.9.1