]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Apr 2014 07:10:00 +0000 (17:10 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Apr 2014 07:11:02 +0000 (17:11 +1000)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/sparc/kernel/process_64.c

index 65b405c3642136c4cf78f1feaa9e56429915ab26..9975a6dbca0a75183ec7e29600d44837b8ed2ea8 100644 (file)
@@ -261,10 +261,12 @@ void arch_trigger_all_cpu_backtrace(bool include_self)
        smp_fetch_global_regs();
 
        for_each_online_cpu(cpu) {
+               struct global_reg_snapshot *gp;
+
                if (!include_self && cpu == this_cpu)
                        continue;
 
-               struct global_reg_snapshot *gp = &global_cpu_snapshot[cpu].reg;
+               gp = &global_cpu_snapshot[cpu].reg;
 
                __global_reg_poll(gp);