[IA64] Do not call SN_SAL_SET_CPU_NUMBER twice on cpu 0
authorJay Lan <jlan@sgi.com>
Mon, 11 Dec 2006 23:39:23 +0000 (15:39 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 12 Dec 2006 18:09:39 +0000 (10:09 -0800)
commitadf142e379bd20ad906a7e36f722eaabb3b44b0c
treebcd0e2054bdaf023e211169bd46bb334b6cdcb11
parent3640543df26fd38f31f0c6decc35c07be2a6307c
[IA64] Do not call SN_SAL_SET_CPU_NUMBER twice on cpu 0

This is an SN specific patch.

Architectually, cpu_init is always called twice on cpu 0
and thus resulted in two SN_SAL_SET_CPU_NUMBER calls.

This was harmless in production kernel; however, it can
cause problem on booting up a crashdump kernel at Altix.

Here is the patch that detects the second sn_cpu_init
call and skips the second call to SN_SAL_SET_CPU_NUMBER.

Signed-Off-By: Jay Lan <jlan@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/setup.c