From bb414381527804fe3ccd81f03b043b163cc5fdfe Mon Sep 17 00:00:00 2001 From: "J. Avila" Date: Mon, 1 Mar 2021 16:47:07 +0000 Subject: [PATCH] ANDROID: sched/rt: Only enable RT sync for SMP targets The rt sync wakeup support has a condition which relies on a field that exists only when CONFIG_SMP is defined, causing a compilation issue. Since sync wakeup has no real meaning on a non-SMP system, we can just drop the CONFIG_RT_GROUP_SCHED part of the #ifdef. Fixes: da5f3cd37802 ("ANDROID: sched/rt: Add support for rt sync wakeups") Signed-off-by: J. Avila Change-Id: I9b95304408d323b0c1017bd33746ecfbb2b35808 --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index b91f3af14677..98fda6371c32 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1372,7 +1372,7 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags) enqueue_top_rt_rq(&rq->rt); } -#if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED +#ifdef CONFIG_SMP static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p, bool sync) {