summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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