Skip to content

Commit

Permalink
powerpc/crash: Fix build error without SMP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Kujau authored and Benjamin Herrenschmidt committed Jan 24, 2012
1 parent f7aa554 commit 897e01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 897e01a

Please sign in to comment.