aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-24 19:39:21 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-09-30 16:46:02 +0200
commit3a0f6c2515290dd99f1a8135035d8cd57b03d421 (patch)
treec7e100d456f0e4502a0b7aab880f6f344f6cfe14
parentnet: fib: fib_encap_match requires CONFIG_IP_ROUTE_MULTIPATH (diff)
downloadrhel7-kernel-misery-3a0f6c2515290dd99f1a8135035d8cd57b03d421.tar.xz
rhel7-kernel-misery-3a0f6c2515290dd99f1a8135035d8cd57b03d421.zip
sched: fair: idle_balance is always defined
So remove the stub function. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--kernel/sched/fair.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 514d5426ea6..306bc7cbd2d 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -2655,8 +2655,6 @@ void idle_exit_fair(struct rq *this_rq)
update_rq_runnable_avg(this_rq, 0);
}
-static int idle_balance(struct rq *this_rq);
-
#else /* CONFIG_SMP */
static inline void update_entity_load_avg(struct sched_entity *se,
@@ -2671,11 +2669,6 @@ static inline void dequeue_entity_load_avg(struct cfs_rq *cfs_rq,
static inline void update_cfs_rq_blocked_load(struct cfs_rq *cfs_rq,
int force_update) {}
-static inline int idle_balance(struct rq *rq)
-{
- return 0;
-}
-
#endif /* CONFIG_SMP */
static void enqueue_sleeper(struct cfs_rq *cfs_rq, struct sched_entity *se)
@@ -4771,6 +4764,8 @@ static void set_skip_buddy(struct sched_entity *se)
cfs_rq_of(se)->skip = se;
}
+static int idle_balance(struct rq *this_rq);
+
/*
* Preempt the current task with a newly woken task if needed:
*/