summaryrefslogtreecommitdiffstats
path: root/kernel/lib/dump_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lib/dump_stack.c')
-rw-r--r--kernel/lib/dump_stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/lib/dump_stack.c b/kernel/lib/dump_stack.c
index 6745c6230..7ccbc6ff8 100644
--- a/kernel/lib/dump_stack.c
+++ b/kernel/lib/dump_stack.c
@@ -33,7 +33,7 @@ asmlinkage __visible void dump_stack(void)
* Permit this cpu to perform nested stack dumps while serialising
* against other CPUs
*/
- preempt_disable();
+ migrate_disable();
retry:
cpu = smp_processor_id();
@@ -52,7 +52,7 @@ retry:
if (!was_locked)
atomic_set(&dump_lock, -1);
- preempt_enable();
+ migrate_enable();
}
#else
asmlinkage __visible void dump_stack(void)