original_kernel/arch/sparc64/kernel
KAMEZAWA Hiroyuki 76b67ed9dc [PATCH] node hotplug: register cpu: remove node struct
With Goto-san's patch, we can add new pgdat/node at runtime.  I'm now
considering node-hot-add with cpu + memory on ACPI.

I found acpi container, which describes node, could evaluate cpu before
memory. This means cpu-hot-add occurs before memory hot add.

In most part, cpu-hot-add doesn't depend on node hot add.  But register_cpu(),
which creates symbolic link from node to cpu, requires that node should be
onlined before register_cpu().  When a node is onlined, its pgdat should be
there.

This patch-set holds off creating symbolic link from node to cpu
until node is onlined.

This removes node arguments from register_cpu().

Now, register_cpu() requires 'struct node' as its argument.  But the array of
struct node is now unified in driver/base/node.c now (By Goto's node hotplug
patch).  We can get struct node in generic way.  So, this argument is not
necessary now.

This patch also guarantees add cpu under node only when node is onlined.  It
is necessary for node-hot-add vs.  cpu-hot-add patch following this.

Moreover, register_cpu calculates cpu->node_id by cpu_to_node() without regard
to its 'struct node *root' argument.  This patch removes it.

Also modify callers of register_cpu()/unregister_cpu, whose args are changed
by register-cpu-remove-node-struct patch.

[Brice.Goglin@ens-lyon.org: fix it]
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-27 17:32:37 -07:00
..
Makefile [SPARC64]: Add of_device layer and make ebus/isa use it. 2006-06-23 23:15:43 -07:00
asm-offsets.c
auxio.c [SPARC64]: Export auxio_register to modules. 2006-06-25 23:15:08 -07:00
binfmt_aout32.c
binfmt_elf32.c
central.c [SPARC64]: Convert central bus layer to in-kernel PROM device tree. 2006-06-23 23:15:32 -07:00
chmc.c [SPARC64]: Convert Cheetah memory controller driver to in-kernel PROM tree. 2006-06-23 23:15:34 -07:00
cpu.c
devices.c [SPARC64]: Convert cpu_find_by_*() interface to in-kernel PROM device tree. 2006-06-23 23:15:17 -07:00
dtlb_miss.S
dtlb_prot.S
ebus.c [SPARC64]: Make auxio a real driver. 2006-06-23 23:16:21 -07:00
entry.S [SPARC64]: Move over to GENERIC_HARDIRQS. 2006-06-20 01:23:32 -07:00
etrap.S
head.S [SPARC64]: Make smp_processor_id() functional before start_kernel() 2006-05-31 01:24:02 -07:00
idprom.c
init_task.c
iommu_common.c
iommu_common.h
irq.c [SPARC64]: Allow floppy driver to build modular. 2006-06-25 23:15:01 -07:00
isa.c [SPARC64]: Add of_device layer and make ebus/isa use it. 2006-06-23 23:15:43 -07:00
itlb_miss.S
kprobes.c
ktlb.S
module.c
of_device.c [SPARC]: Export x_bus_type to modules. 2006-06-25 23:14:59 -07:00
pci.c [SPARC64]: Disable verbose PCI IRQ probing messages by default. 2006-06-23 23:15:09 -07:00
pci_common.c [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_impl.h [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_iommu.c [SPARC64]: Respect gfp_t argument to dma_alloc_coherent(). 2006-05-23 02:07:22 -07:00
pci_psycho.c [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_sabre.c [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_schizo.c [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_sun4v.c [SPARC64]: Convert sparc64 PCI layer to in-kernel device tree. 2006-06-23 23:15:26 -07:00
pci_sun4v.h
pci_sun4v_asm.S
power.c [SPARC64]: Add of_device layer and make ebus/isa use it. 2006-06-23 23:15:43 -07:00
process.c
prom.c [SPARC]: Add unique device_node IDs and a ".node" property. 2006-06-25 23:18:57 -07:00
ptrace.c
rtrap.S
sbus.c [SPARC64]: Make auxio a real driver. 2006-06-23 23:16:21 -07:00
semaphore.c
setup.c [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
signal.c
signal32.c
smp.c [SPARC64]: Convert cpu_find_by_*() interface to in-kernel PROM device tree. 2006-06-23 23:15:17 -07:00
sparc64_ksyms.c [SPARC64]: Don't double-export synchronize_irq. 2006-06-20 01:23:56 -07:00
starfire.c
sun4v_ivec.S [SPARC64]: Move over to GENERIC_HARDIRQS. 2006-06-20 01:23:32 -07:00
sun4v_tlb_miss.S
sunos_ioctl32.c
sys32.S
sys_sparc.c
sys_sparc32.c
sys_sunos32.c
systbls.S [SPARC]: Add robust futex syscall entries. 2006-05-21 21:22:53 -07:00
time.c [SPARC64]: Convert central bus layer to in-kernel PROM device tree. 2006-06-23 23:15:32 -07:00
trampoline.S
traps.c [SPARC64]: Convert cpu_find_by_*() interface to in-kernel PROM device tree. 2006-06-23 23:15:17 -07:00
tsb.S
ttable.S [SPARC64]: Send all device interrupts via one PIL. 2006-06-20 01:20:00 -07:00
una_asm.S
unaligned.c [SPARC64]: Rate limited kernel unaligned trap logging, ala IA64. 2006-06-23 23:15:11 -07:00
us2e_cpufreq.c
us3_cpufreq.c
visemul.c
vmlinux.lds.S
winfixup.S