kernel_optimize_test/arch/sparc64/kernel
Fernando Luis Vazquez Cao 2f4dfe206a 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>
2007-05-09 12:30:48 -07:00
..
asm-offsets.c
audit.c
auxio.c
binfmt_aout32.c
binfmt_elf32.c
central.c [SPARC64]: Fix section mismatch warnings in arch/sparc64/kernel/console.c 2007-05-07 00:00:37 -07:00
chmc.c [SPARC64]: constify of_get_property return: arch/sparc64 2007-04-26 01:54:24 -07:00
compat_audit.c
cpu.c
devices.c
dtlb_miss.S
dtlb_prot.S
ebus.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
entry.S [SPARC64]: Add irqtrace/stacktrace/lockdep support. 2006-12-10 02:39:09 -08:00
etrap.S
head.S [SPARC64]: Kill no-remapping-needed code in head.S 2006-12-17 14:06:55 -08:00
idprom.c
init_task.c
iommu_common.c
iommu_common.h
irq.c [SPARC64]: SUN4U PCI-E controller support. 2007-05-06 22:44:06 -07:00
isa.c [SPARC64] isa: Convert to use pci_device_to_OF_node(). 2007-04-26 01:55:05 -07:00
itlb_miss.S
kprobes.c [SPARC64]: Optimize fault kprobe handling just like powerpc. 2007-05-08 18:25:14 -07:00
ktlb.S [SPARC64]: Get DEBUG_PAGEALLOC working again. 2007-03-16 17:20:28 -07:00
Makefile [SPARC64]: SUN4U PCI-E controller support. 2007-05-06 22:44:06 -07:00
module.c
of_device.c [SPARC64]: Fix PCI rework to adhere to of_get_property() const return. 2007-04-26 01:55:37 -07:00
pci_common.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
pci_fire.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
pci_impl.h [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
pci_iommu.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
pci_psycho.c [SPARC64]: Fix request_irq() ignored result warnings in PCI controller code. 2007-05-08 17:23:31 -07:00
pci_sabre.c [SPARC64]: Fix request_irq() ignored result warnings in PCI controller code. 2007-05-08 17:23:31 -07:00
pci_schizo.c [SPARC64]: Fix request_irq() ignored result warnings in PCI controller code. 2007-05-08 17:23:31 -07:00
pci_sun4v_asm.S [SPARC64]: Add PCI MSI support on Niagara. 2007-02-10 23:50:37 -08:00
pci_sun4v.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
pci_sun4v.h [SPARC64]: Add PCI MSI support on Niagara. 2007-02-10 23:50:37 -08:00
pci.c [SPARC64]: Kill asm-sparc64/pbm.h 2007-05-08 16:43:08 -07:00
power.c
process.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
prom.c [SPARC64]: Fix section mismatch warnings in arch/sparc64/kernel/prom.c 2007-05-07 00:02:24 -07:00
ptrace.c [SPARC{32,64}]: Propagate ptrace_traceme() return value. 2006-12-10 02:40:27 -08:00
rtrap.S [SPARC64]: Add irqtrace/stacktrace/lockdep support. 2006-12-10 02:39:09 -08:00
sbus.c [SPARC64] SBUS: Error interrupt registry cleanups. 2007-05-08 16:41:28 -07:00
semaphore.c
setup.c [PATCH] Dynamic kernel command-line: sparc64 2007-02-12 09:48:39 -08:00
signal.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
signal32.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
smp.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sparc64_ksyms.c [SPARC64]: Internalize pci_memspace_mask. 2007-04-26 01:55:07 -07:00
stacktrace.c simplify the stacktrace code 2007-05-08 11:14:58 -07:00
starfire.c
sun4v_ivec.S [SPARC64]: Add irqtrace/stacktrace/lockdep support. 2006-12-10 02:39:09 -08:00
sun4v_tlb_miss.S [SPARC64]: Set g4/g5 properly in sun4v dtlb-prot handling. 2007-01-26 18:56:01 -08:00
sunos_ioctl32.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sys_sparc.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sys_sparc32.c [SPARC]: Wire up utimensat syscall. 2007-05-08 17:50:14 -07:00
sys_sunos32.c [SPARC]: avoid CHILD_MAX and OPEN_MAX constants 2007-04-12 13:13:42 -07:00
sys32.S [SPARC64]: Fix arg passing to compat_sys_ipc(). 2007-04-13 13:27:08 -07:00
systbls.S [SPARC]: Wire up utimensat syscall. 2007-05-08 17:50:14 -07:00
time.c [SPARC64]: constify of_get_property return: arch/sparc64 2007-04-26 01:54:24 -07:00
trampoline.S
traps.c Remove hardcoding of hard_smp_processor_id on UP systems 2007-05-09 12:30:48 -07:00
tsb.S [SPARC64]: store-init needs trailing membar. 2007-03-19 13:27:33 -07:00
ttable.S [SPARC64]: Unify timer interrupt handler. 2007-04-26 01:54:11 -07:00
una_asm.S
unaligned.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
us2e_cpufreq.c
us3_cpufreq.c
visemul.c [SPARC64]: Call do_mathemu on illegal instruction traps too. 2006-12-10 02:39:32 -08:00
vmlinux.lds.S [PATCH] disable init/initramfs.c: architectures 2007-02-11 10:51:25 -08:00
winfixup.S