]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched: Remove unneeed macro wrap
authorMichal Koutný <mkoutny@suse.com>
Mon, 10 Mar 2025 17:04:34 +0000 (18:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 8 Apr 2025 18:55:53 +0000 (20:55 +0200)
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ý <mkoutny@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250310170442.504716-3-mkoutny@suse.com
kernel/sched/rt.c

index 2ade81e69db0a8640fd7bacb16beaec1524696c2..61ec29b11ef452bb9b22134408b0d1164ee3ee80 100644 (file)
@@ -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;
 }