linux/arch/parisc/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 [PATCH] sanitize building of fs/compat_ioctl.c 2006-01-10 08:01:33 -08:00
asm-offsets.c [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
binfmt_elf32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cache.c [PARISC] Misc. janitorial work 2006-04-21 22:20:32 +00:00
drivers.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
entry.S [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
firmware.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
hardware.c [PARISC] Fix Dino reporting on J2240 2006-01-10 21:53:14 -05:00
head.S [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
hpmc.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
inventory.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
irq.c [PARISC] Make redirecting irq messages less noisy 2005-11-17 16:29:50 -05:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pa7300lc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pacache.S [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
parisc_ksyms.c [PATCH] No arch-specific strpbrk implementations 2006-04-11 06:18:40 -07:00
pci-dma.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
pci.c [PARISC] Clean up compiler warning in pci.c 2006-01-22 20:26:43 -05:00
pdc_chassis.c [PARISC] Clarify pdc_stable license terms 2006-03-30 17:48:41 +00:00
pdc_cons.c [PARISC] Update pdc console from parisc tree 2005-10-21 22:50:06 -04:00
perf.c [PARISC] I/O-Space must be ioremap_nocache()'d 2006-03-30 17:48:42 +00:00
perf_asm.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perf_images.h [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
process.c [PATCH] kill include/linux/platform.h, default_idle() cleanup 2006-03-24 07:33:21 -08:00
processor.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
ptrace.c [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
real2.S [PARISC] Properly specify section alignment for real2.S 2005-10-21 22:56:53 -04:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
signal.c [PATCH] fix incorrect SA_ONSTACK behaviour for 64-bit processes 2006-06-23 07:43:05 -07:00
signal32.c [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
signal32.h [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
smp.c [PATCH] more for_each_cpu() conversions 2006-03-23 07:38:17 -08:00
sys32.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_parisc.c [PARISC] Add new entries to the syscall table 2006-04-21 22:20:35 +00:00
sys_parisc32.c [PATCH] consolidate sys32/compat_adjtimex 2006-03-26 08:56:57 -08:00
syscall.S [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00
syscall_table.S [PARISC] Add new entries to the syscall table 2006-04-21 22:20:35 +00:00
time.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
topology.c [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
traps.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
unaligned.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
unwind.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
vmlinux.lds.S [PARISC] Further work for multiple page sizes 2006-04-21 22:20:34 +00:00