From: Stephen Rothwell Date: Sat, 17 May 2014 13:19:32 +0000 (+1000) Subject: nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix X-Git-Tag: next-20140519~3^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3591abd7452bcb7f030072b318e25d292732ad44;p=karo-tx-linux.git nmi-provide-the-option-to-issue-an-nmi-back-trace-to-every-cpu-but-current-fix undo C99ism Signed-off-by: Stephen Rothwell Cc: Aaron Tomlin Cc: Don Zickus Cc: David S. Miller Cc: Mateusz Guzik Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c index 65b405c36421..9975a6dbca0a 100644 --- a/arch/sparc/kernel/process_64.c +++ b/arch/sparc/kernel/process_64.c @@ -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);