diff options
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ffde9eebc846..71bdb86e07f9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4028,6 +4028,9 @@ int idle_cpu(int cpu) return 0; #endif + if (vcpu_is_preempted(cpu)) + return 0; + return 1; } |