Reapply "smp: Use migrate disable/enable in smp_call_function_single_async()"
This reverts commit f37c1e4577
.
This commit is contained in:
parent
f6ee50f616
commit
2ad6f215fd
1 changed files with 2 additions and 2 deletions
|
@ -547,7 +547,7 @@ int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
|
|||
{
|
||||
int err = 0;
|
||||
|
||||
preempt_disable();
|
||||
migrate_disable();
|
||||
|
||||
if (csd->flags & CSD_FLAG_LOCK) {
|
||||
err = -EBUSY;
|
||||
|
@ -560,7 +560,7 @@ int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
|
|||
err = generic_exec_single(cpu, csd);
|
||||
|
||||
out:
|
||||
preempt_enable();
|
||||
migrate_enable();
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue