From: Michal Koutný Date: Mon, 10 Mar 2025 17:04:34 +0000 (+0100) Subject: sched: Remove unneeed macro wrap X-Git-Tag: v6.16-rc1~197^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e285313f0848157cc3c6827d233a2510167b50cf;p=thirdparty%2Flinux.git sched: Remove unneeed macro wrap rt_entity_is_task has split definitions based on CONFIG_RT_GROUP_SCHED, therefore we can use it always. No functional change intended. Signed-off-by: Michal Koutný Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20250310170442.504716-3-mkoutny@suse.com --- diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2ade81e69db0a..61ec29b11ef45 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -1255,11 +1255,9 @@ static void __delist_rt_entity(struct sched_rt_entity *rt_se, struct rt_prio_arr static inline struct sched_statistics * __schedstats_from_rt_se(struct sched_rt_entity *rt_se) { -#ifdef CONFIG_RT_GROUP_SCHED /* schedstats is not supported for rt group. */ if (!rt_entity_is_task(rt_se)) return NULL; -#endif return &rt_task_of(rt_se)->stats; }