1
linux/arch/ppc/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
..
asm-offsets.c ppc: Fix typo in TI_LOCAL_FLAGS definition 2006-05-29 08:42:34 +10:00
cpu_setup_power4.S
dma-mapping.c [PATCH] mm: split highorder pages 2006-03-22 07:53:57 -08:00
entry.S [PATCH] ppc: Fix powersave code on arch/ppc 2006-04-21 22:33:22 +10:00
head_4xx.S
head_8xx.S [PATCH] ppc32/8xx: Fix r3 trashing due to 8MB TLB page instantiation 2006-05-09 16:03:11 +10:00
head_44x.S
head_booke.h
head_fsl_booke.S
head.S ppc: Remove CHRP, POWER3 and POWER4 support from arch/ppc 2006-03-28 10:22:10 +11:00
machine_kexec.c Storage class should be first 2006-06-26 18:57:34 +02:00
Makefile powerpc: Don't compile in arch/ppc/kernel for 32-bit ARCH=powerpc 2006-03-27 20:17:06 +11:00
misc.S
pci.c [PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM 2006-06-25 10:00:55 -07:00
ppc_htab.c Merge ../linux-2.6 2006-03-29 13:24:50 +11:00
ppc_ksyms.c powerpc/ppc: export strncasecmp 2006-04-02 16:01:58 -05:00
ppc-stub.c
relocate_kernel.S
rio.c
semaphore.c
setup.c [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
smp-tbsync.c
smp.c [PATCH] for_each_possible_cpu: ppc 2006-03-29 13:44:16 +11:00
softemu8xx.c
time.c
traps.c
vmlinux.lds.S