Skip to content

Commit 9fd5da7

Browse files
author
Ingo Molnar
committed
sched/smp: Use the SMP version of is_migration_disabled()
Simplify the scheduler by making the CONFIG_SMP-only code in is_migration_disabled() unconditional. Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Shrikanth Hegde <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1724088 commit 9fd5da7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/sched/sched.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,11 +1301,7 @@ static inline int cpu_of(struct rq *rq)
13011301

13021302
static inline bool is_migration_disabled(struct task_struct *p)
13031303
{
1304-
#ifdef CONFIG_SMP
13051304
return p->migration_disabled;
1306-
#else
1307-
return false;
1308-
#endif
13091305
}
13101306

13111307
DECLARE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);

0 commit comments

Comments
 (0)