Skip to content

Commit 0203244

Browse files
author
Ingo Molnar
committed
sched/smp: Use the SMP version of WF_ and SD_ flag sanity checks
Simplify the scheduler by making CONFIG_SMP=y asserts related to WF_ and SD_ flags 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 ea100b3 commit 0203244

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/sched.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,11 +2261,9 @@ static inline int task_on_rq_migrating(struct task_struct *p)
22612261
#define WF_CURRENT_CPU 0x40 /* Prefer to move the wakee to the current CPU. */
22622262
#define WF_RQ_SELECTED 0x80 /* ->select_task_rq() was called */
22632263

2264-
#ifdef CONFIG_SMP
22652264
static_assert(WF_EXEC == SD_BALANCE_EXEC);
22662265
static_assert(WF_FORK == SD_BALANCE_FORK);
22672266
static_assert(WF_TTWU == SD_BALANCE_WAKE);
2268-
#endif
22692267

22702268
/*
22712269
* To aid in avoiding the subversion of "niceness" due to uneven distribution

0 commit comments

Comments
 (0)