diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-16 04:29:05 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-16 04:29:04 -0800 |
commit | a963750b83c50c1eafc89dc233c58abdd194d404 (patch) | |
tree | bdcafe82aa67b7c2daf1bd05e3dca61d8dbd469f /kernel/sched/sched.h | |
parent | 05030ff7a023e3bbf6a9f00e39f3b1180cb7e4c2 (diff) | |
parent | f6471c2c9d94cf61aa0be049be24f593cfa4f5d6 (diff) |
Merge "sched: Fix compilation errors when CFS_BANDWIDTH && !SCHED_HMP"
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index c110c4aaf2be..a9d98b7dd10e 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1055,6 +1055,12 @@ static inline void sched_ttwu_pending(void) { } #include "stats.h" #include "auto_group.h" +enum sched_boost_policy { + SCHED_BOOST_NONE, + SCHED_BOOST_ON_BIG, + SCHED_BOOST_ON_ALL, +}; + #ifdef CONFIG_SCHED_HMP #define WINDOW_STATS_RECENT 0 @@ -1139,12 +1145,6 @@ extern unsigned int update_freq_aggregate_threshold(unsigned int threshold); extern void update_avg_burst(struct task_struct *p); extern void update_avg(u64 *avg, u64 sample); -enum sched_boost_policy { - SCHED_BOOST_NONE, - SCHED_BOOST_ON_BIG, - SCHED_BOOST_ON_ALL, -}; - #define NO_BOOST 0 #define FULL_THROTTLE_BOOST 1 #define CONSERVATIVE_BOOST 2 @@ -1496,6 +1496,16 @@ struct hmp_sched_stats; struct related_thread_group; struct sched_cluster; +static inline enum sched_boost_policy sched_boost_policy(void) +{ + return SCHED_BOOST_NONE; +} + +static inline bool task_sched_boost(struct task_struct *p) +{ + return true; +} + static inline int got_boost_kick(void) { return 0; |