aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/apic/hw_nmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c
index c57d0b599448..2b40a6045da2 100644
--- a/arch/x86/kernel/apic/hw_nmi.c
+++ b/arch/x86/kernel/apic/hw_nmi.c
@@ -51,7 +51,7 @@ arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
51{ 51{
52 struct die_args *args = __args; 52 struct die_args *args = __args;
53 struct pt_regs *regs; 53 struct pt_regs *regs;
54 int cpu = smp_processor_id(); 54 int cpu;
55 55
56 switch (cmd) { 56 switch (cmd) {
57 case DIE_NMI: 57 case DIE_NMI:
@@ -63,6 +63,7 @@ arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
63 } 63 }
64 64
65 regs = args->regs; 65 regs = args->regs;
66 cpu = smp_processor_id();
66 67
67 if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) { 68 if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
68 static arch_spinlock_t lock = __ARCH_SPIN_LOCK_UNLOCKED; 69 static arch_spinlock_t lock = __ARCH_SPIN_LOCK_UNLOCKED;