]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/crash: Fix build error without SMP
authorChristian Kujau <lists@nerdbynature.de>
Tue, 17 Jan 2012 19:13:05 +0000 (19:13 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jan 2012 22:47:45 +0000 (09:47 +1100)
I could not find cpus_in_crash anywhere in the sourcetree, except for
arch/powerpc/kernel/crash.c. Moving the definition into the CONFIG_SMP
fixes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/crash.c

index 28be3452e67ad75157940bc7ee29a6fd3f0c0195..abef75176c079f2f72f71d6af4f10cec4095deca 100644 (file)
@@ -46,7 +46,6 @@
 
 /* This keeps a track of which one is the crashing cpu. */
 int crashing_cpu = -1;
-static atomic_t cpus_in_crash;
 static int time_to_dump;
 
 #define CRASH_HANDLER_MAX 3
@@ -66,6 +65,7 @@ static int handle_fault(struct pt_regs *regs)
 
 #ifdef CONFIG_SMP
 
+static atomic_t cpus_in_crash;
 void crash_ipi_callback(struct pt_regs *regs)
 {
        static cpumask_t cpus_state_saved = CPU_MASK_NONE;