diff options
author | Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp> | 2007-05-09 05:33:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-09 15:30:48 -0400 |
commit | 2f4dfe206a2fc07099dfad77a8ea2f4b4ae2140f (patch) | |
tree | b66a624ba68766282fa0ddb509ff641552703da4 /include/asm-x86_64 | |
parent | dd2a345f8f002845636dbf5d2d768bb5cd8a5f59 (diff) |
Remove hardcoding of hard_smp_processor_id on UP systems
With the advent of kdump, the assumption that the boot CPU when booting an UP
kernel is always the CPU with a particular hardware ID (often 0) (usually
referred to as BSP on some architectures) is not valid anymore. The reason
being that the dump capture kernel boots on the crashed CPU (the CPU that
invoked crash_kexec), which may be or may not be that particular CPU.
Move definition of hard_smp_processor_id for the UP case to
architecture-specific code ("asm/smp.h") where it belongs, so that each
architecture can provide its own implementation.
Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Cc: "Luck, Tony" <tony.luck@intel.com>
Acked-by: Andi Kleen <ak@suse.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r-- | include/asm-x86_64/smp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-x86_64/smp.h b/include/asm-x86_64/smp.h index d5704421456b..f62fda527439 100644 --- a/include/asm-x86_64/smp.h +++ b/include/asm-x86_64/smp.h | |||
@@ -71,7 +71,9 @@ extern unsigned __cpuinitdata disabled_cpus; | |||
71 | 71 | ||
72 | #define NO_PROC_ID 0xFF /* No processor magic marker */ | 72 | #define NO_PROC_ID 0xFF /* No processor magic marker */ |
73 | 73 | ||
74 | #endif | 74 | #else /* CONFIG_SMP */ |
75 | #define hard_smp_processor_id() 0 | ||
76 | #endif /* CONFIG_SMP */ | ||
75 | 77 | ||
76 | /* | 78 | /* |
77 | * Some lowlevel functions might want to know about | 79 | * Some lowlevel functions might want to know about |