linux/arch/mips
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
..
arc
au1000
basler/excite [MIPS] Support for the RM9000-based Basler eXcite smart camera platform. 2006-06-19 17:39:26 +01:00
boot
cobalt
configs [MIPS] Make timer interrupt frequency configurable from kconfig. 2006-06-19 17:39:27 +01:00
ddb5xxx [MIPS] Remove support for NEC DDB5476. 2006-06-19 17:39:24 +01:00
dec [MIPS] Make timer interrupt frequency configurable from kconfig. 2006-06-19 17:39:27 +01:00
emma2rh [MIPS] Support for the R5500-based NEC EMMA2RH Mark-eins board 2006-06-19 17:39:26 +01:00
galileo-boards/ev96100
gt64120
ite-boards
jazz
jmr3927
kernel [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
lasat
lib
lib-32
lib-64
math-emu
mips-boards
mm
momentum spelling fixes 2006-06-26 18:35:02 +02:00
oprofile [PATCH] oprofile: Fix unnecessary cleverness 2006-06-26 09:58:17 -07:00
pci [MIPS] Support for the RM9000-based Basler eXcite smart camera platform. 2006-06-19 17:39:26 +01:00
philips/pnx8550
pmc-sierra
qemu
sgi-ip22 fix paniced->panicked typos 2006-06-26 18:30:00 +02:00
sgi-ip27
sgi-ip32 fix paniced->panicked typos 2006-06-26 18:30:00 +02:00
sibyte [MIPS] Random fixes for sb1250 2006-06-19 17:39:24 +01:00
sni [MIPS] Support SNI RM200C SNI in big endian mode and R5000 processors. 2006-06-19 17:39:24 +01:00
tx4927
tx4938
vr41xx
defconfig [MIPS] Make timer interrupt frequency configurable from kconfig. 2006-06-19 17:39:27 +01:00
Kconfig [MIPS] Make timer interrupt frequency configurable from kconfig. 2006-06-19 17:39:27 +01:00
Kconfig.debug
Makefile [MIPS] Support for the RM9000-based Basler eXcite smart camera platform. 2006-06-19 17:39:26 +01:00