[PATCH RT 2/2] sched: migrate_enable: Remove __schedule() call

From: Scott Wood
Date: Fri Jan 24 2020 - 06:42:42 EST


We can rely on preempt_enable() to schedule. Besides simplifying the
code, this potentially allows sequences such as the following to be
permitted:

migrate_disable();
preempt_disable();
migrate_enable();
preempt_enable();

Suggested-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
Signed-off-by: Scott Wood <swood@xxxxxxxxxx>
---
kernel/sched/core.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7713e9c34ad1..ea0536461981 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -8248,7 +8248,6 @@ void migrate_enable(void)

stop_one_cpu_nowait(task_cpu(p), migration_cpu_stop,
arg, work);
- __schedule(true);
}

out:
--
1.8.3.1