]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/softirq.c
sched/rt: Use schedule_preempt_disabled()
[mirror_ubuntu-bionic-kernel.git] / kernel / softirq.c
index 4eb3a0fa351e788297e7d14f0f56cec66d61c1ae..79b524767a24b9f2705f46eeedd3eecdbd33dbb6 100644 (file)
@@ -744,9 +744,7 @@ static int run_ksoftirqd(void * __bind_cpu)
        while (!kthread_should_stop()) {
                preempt_disable();
                if (!local_softirq_pending()) {
-                       preempt_enable_no_resched();
-                       schedule();
-                       preempt_disable();
+                       schedule_preempt_disabled();
                }
 
                __set_current_state(TASK_RUNNING);