Skip to content

Commit

Permalink
[IA64] Fix build for CONFIG_SMP=n
Browse files Browse the repository at this point in the history
d5a7430 missed a spot where we
use cpu_sibling_map and cpu_core_map.  These don't exist on a
uni-processor build.  Wrap #ifdef CONFIG_SMP ... #endif around it.

Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Tony Luck committed Oct 16, 2007
1 parent 821f3ef commit 4d1efed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/ia64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ cpu_init (void)
void *cpu_data;

cpu_data = per_cpu_init();
#ifdef CONFIG_SMP
/*
* insert boot cpu into sibling and core mapes
* (must be done after per_cpu area is setup)
Expand All @@ -877,6 +878,7 @@ cpu_init (void)
cpu_set(0, per_cpu(cpu_sibling_map, 0));
cpu_set(0, cpu_core_map[0]);
}
#endif

/*
* We set ar.k3 so that assembly code in MCA handler can compute
Expand Down

0 comments on commit 4d1efed

Please sign in to comment.