|
@@ -51,7 +51,7 @@ arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
|
|
|
{
|
|
|
struct die_args *args = __args;
|
|
|
struct pt_regs *regs;
|
|
|
- int cpu = smp_processor_id();
|
|
|
+ int cpu;
|
|
|
|
|
|
switch (cmd) {
|
|
|
case DIE_NMI:
|
|
@@ -63,6 +63,7 @@ arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
|
|
|
}
|
|
|
|
|
|
regs = args->regs;
|
|
|
+ cpu = smp_processor_id();
|
|
|
|
|
|
if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
|
|
|
static arch_spinlock_t lock = __ARCH_SPIN_LOCK_UNLOCKED;
|