summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2016-03-17 10:15:59 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:25:24 -0700
commitd96fdc91d197e04164f5b1809e7076e63c0e2675 (patch)
treeb5f7e05de25ceec347f6f4f772cbf0acf4fb2cf1 /include/linux
parent16ecb20600bd0aa0037217fa3033e9a03a3f3c69 (diff)
sched: fix compile failure with !CONFIG_SCHED_HMP
Fix various compilation failures when CONFIG_SCHED_HMP or CONFIG_SCHED_INPUT isn't enabled. Change-Id: I385dd37cfd778919f54f606bc13bebedd2fb5b9e Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 6d43a9cb8757..e963ff30a7f6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2151,7 +2151,6 @@ extern unsigned long sched_get_busy(int cpu);
extern void sched_get_cpus_busy(struct sched_load *busy,
const struct cpumask *query_cpus);
extern void sched_set_io_is_busy(int val);
-int sched_update_freq_max_load(const cpumask_t *cpumask);
#else
static inline int sched_set_window(u64 window_start, unsigned int window_size)
{
@@ -2164,11 +2163,6 @@ static inline unsigned long sched_get_busy(int cpu)
static inline void sched_get_cpus_busy(struct sched_load *busy,
const struct cpumask *query_cpus) {};
static inline void sched_set_io_is_busy(int val) {};
-
-static inline int sched_update_freq_max_load(const cpumask_t *cpumask)
-{
- return 0;
-}
#endif
/*
@@ -2380,12 +2374,17 @@ extern int sched_set_static_cpu_pwr_cost(int cpu, unsigned int cost);
extern unsigned int sched_get_static_cpu_pwr_cost(int cpu);
extern int sched_set_static_cluster_pwr_cost(int cpu, unsigned int cost);
extern unsigned int sched_get_static_cluster_pwr_cost(int cpu);
-
+extern int sched_update_freq_max_load(const cpumask_t *cpumask);
#else
static inline int sched_set_boost(int enable)
{
return -EINVAL;
}
+
+static inline int sched_update_freq_max_load(const cpumask_t *cpumask)
+{
+ return 0;
+}
#endif
#ifdef CONFIG_NO_HZ_COMMON