Loading kernel/stop_machine.c +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) unsigned long flags; bool enabled; preempt_disable(); spin_lock_irqsave(&stopper->lock, flags); enabled = stopper->enabled; if (enabled) Loading @@ -90,6 +91,7 @@ static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) spin_unlock_irqrestore(&stopper->lock, flags); wake_up_q(&wakeq); preempt_enable(); return enabled; } Loading Loading
kernel/stop_machine.c +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) unsigned long flags; bool enabled; preempt_disable(); spin_lock_irqsave(&stopper->lock, flags); enabled = stopper->enabled; if (enabled) Loading @@ -90,6 +91,7 @@ static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) spin_unlock_irqrestore(&stopper->lock, flags); wake_up_q(&wakeq); preempt_enable(); return enabled; } Loading