Skip to content

Commit ea100b3

Browse files
author
Ingo Molnar
committed
sched/smp: Use the SMP version of task_on_cpu()
Simplify the scheduler by making CONFIG_SMP=y code in task_on_cpu() 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 703b8e8 commit ea100b3

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
@@ -2238,11 +2238,7 @@ static inline int task_current_donor(struct rq *rq, struct task_struct *p)
22382238

22392239
static inline int task_on_cpu(struct rq *rq, struct task_struct *p)
22402240
{
2241-
#ifdef CONFIG_SMP
22422241
return p->on_cpu;
2243-
#else
2244-
return task_current(rq, p);
2245-
#endif
22462242
}
22472243

22482244
static inline int task_on_rq_queued(struct task_struct *p)

0 commit comments

Comments
 (0)