Skip to content

Commit e285313

Browse files
WerkovPeter Zijlstra
authored andcommitted
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ý <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 433bce5 commit e285313

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/rt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,11 +1255,9 @@ static void __delist_rt_entity(struct sched_rt_entity *rt_se, struct rt_prio_arr
12551255
static inline struct sched_statistics *
12561256
__schedstats_from_rt_se(struct sched_rt_entity *rt_se)
12571257
{
1258-
#ifdef CONFIG_RT_GROUP_SCHED
12591258
/* schedstats is not supported for rt group. */
12601259
if (!rt_entity_is_task(rt_se))
12611260
return NULL;
1262-
#endif
12631261

12641262
return &rt_task_of(rt_se)->stats;
12651263
}

0 commit comments

Comments
 (0)