diff options
author | Christian Kujau <lists@nerdbynature.de> | 2012-01-17 14:13:05 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-01-24 17:47:45 -0500 |
commit | 897e01a08c08d86bc76bebb0ca14588b406500e5 (patch) | |
tree | 8d59b18b90035139c0dac3d71d3abae26ed566f8 /arch | |
parent | f7aa554510f8ff4b1411c31332713ccd8c244ace (diff) |
powerpc/crash: Fix build error without SMP
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/crash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 28be3452e67a..abef75176c07 100644 --- a/arch/powerpc/kernel/crash.c +++ b/arch/powerpc/kernel/crash.c | |||
@@ -46,7 +46,6 @@ | |||
46 | 46 | ||
47 | /* This keeps a track of which one is the crashing cpu. */ | 47 | /* This keeps a track of which one is the crashing cpu. */ |
48 | int crashing_cpu = -1; | 48 | int crashing_cpu = -1; |
49 | static atomic_t cpus_in_crash; | ||
50 | static int time_to_dump; | 49 | static int time_to_dump; |
51 | 50 | ||
52 | #define CRASH_HANDLER_MAX 3 | 51 | #define CRASH_HANDLER_MAX 3 |
@@ -66,6 +65,7 @@ static int handle_fault(struct pt_regs *regs) | |||
66 | 65 | ||
67 | #ifdef CONFIG_SMP | 66 | #ifdef CONFIG_SMP |
68 | 67 | ||
68 | static atomic_t cpus_in_crash; | ||
69 | void crash_ipi_callback(struct pt_regs *regs) | 69 | void crash_ipi_callback(struct pt_regs *regs) |
70 | { | 70 | { |
71 | static cpumask_t cpus_state_saved = CPU_MASK_NONE; | 71 | static cpumask_t cpus_state_saved = CPU_MASK_NONE; |