aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Fernandes (Google) <joel@joelfernandes.org>2024-02-16 10:25:38 -0500
committerJoel Fernandes (Google) <joel@joelfernandes.org>2024-02-16 11:53:04 -0500
commit064b3cdf74693a4f85874d33e37c93b97221d80a (patch)
tree1ddbb94aad02e1757b7b92442f98552959325df2
parent61fb5b0c8eb0c3186b667cddd0785a63753d26ae (diff)
downloadlinux-dlserver-feb-fixes.tar.gz
sched: Fix build error in "sched/rt: Remove default bandwidth control"dlserver-feb-fixes
This fixes a build error introduced by "sched/rt: Remove default bandwidth control". The issue happens because a function is unused when !CONFIG_SMP. It could be squashed into the original patch. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
-rw-r--r--kernel/sched/rt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 37bee56a70f75..d3065fe35c61f 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -964,8 +964,10 @@ struct rt_rq *sched_rt_period_rt_rq(struct rt_bandwidth *rt_b, int cpu)
return &cpu_rq(cpu)->rt;
}
+#ifdef CONFIG_SMP
static void __enable_runtime(struct rq *rq) { }
static void __disable_runtime(struct rq *rq) { }
+#endif
#endif /* CONFIG_RT_GROUP_SCHED */