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 [PATCH] remove set_page_count() outside mm/ 2006-03-22 07:54:02 -08:00
au1000 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
basler/excite [MIPS] Support for the RM9000-based Basler eXcite smart camera platform. 2006-06-19 17:39:26 +01:00
boot Add .gitignore files for MIPS. 2005-11-07 18:05:37 +00:00
cobalt [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
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 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
gt64120 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
ite-boards [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
jazz [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
jmr3927 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
kernel [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
lasat [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
lib [MIPS] Fix optimization for size build. 2006-06-19 17:39:16 +01:00
lib-32 [MIPS] Fix dump_tlb.c warning and cleanup. 2006-02-07 13:30:26 +00:00
lib-64 Fixup a few lose ends in explicit support for MIPS R1/R2. 2005-10-29 19:32:37 +01:00
math-emu [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
mips-boards [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
mm [MIPS] Remove prototype for non-existing function. 2006-06-19 17:39:18 +01:00
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 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
pmc-sierra [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
qemu [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
sgi-ip22 fix paniced->panicked typos 2006-06-26 18:30:00 +02:00
sgi-ip27 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
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 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
tx4938 [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
vr41xx [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
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 [MIPS] Kconfig: Clarify description of CROSSCOMPILE. 2006-04-27 15:13:50 +01:00
Makefile [MIPS] Support for the RM9000-based Basler eXcite smart camera platform. 2006-06-19 17:39:26 +01:00