linux/arch/mips/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 [MIPS] APM emu support 2006-06-19 17:39:22 +01:00
apm.c [MIPS] APM emu support 2006-06-19 17:39:22 +01:00
asm-offsets.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
binfmt_elfn32.c [MIPS] jiffies_to_compat_timeval fix 2006-02-21 16:58:23 +00:00
binfmt_elfo32.c [MIPS] jiffies_to_compat_timeval fix 2006-02-21 16:58:23 +00:00
branch.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
cpu-bugs64.c [MIPS] Fix sparse warnings about too big constants. 2006-06-06 00:15:19 +01:00
cpu-probe.c [MIPS] SB1: Only pass1 FPUs are broken beyond recovery. 2006-06-06 00:15:18 +01:00
dma-no-isa.c Dummy ISA DMA functions for systems that don't have ISA but share 2005-10-29 19:30:17 +01:00
entry.S [MIPS] Fix typo 2006-06-01 00:28:29 +01:00
gdb-low.S [MIPS] Fix kgdb exception handler from user mode. 2006-06-01 00:28:32 +01:00
gdb-stub.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
genex.S [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
head.S [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
i8253.c Input: pcspkr - separate device and driver registration 2006-03-14 00:11:50 -05:00
i8259.c [MIPS] C99-ify struct resource initialization. 2006-06-19 17:39:20 +01:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irix5sys.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irixelf.c [PATCH] Don't uselessly export task_struct to userspace in core dumps 2005-10-30 17:37:18 -08:00
irixinv.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
irixioctl.c Reformatting, remove debugging code. 2005-10-29 19:30:57 +01:00
irixsig.c [PATCH] kernel/sys.c: cleanups 2006-06-25 10:01:06 -07:00
irq-msc01.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
irq-mv6434x.c [MIPS] Momentum: Resurrect after things were moved around a while ago. 2006-03-09 18:05:09 +00:00
irq-rm7000.c Convert struct hw_interrupt_type initializations to ISO C99 named 2005-10-29 19:30:46 +01:00
irq-rm9000.c Convert struct hw_interrupt_type initializations to ISO C99 named 2005-10-29 19:30:46 +01:00
irq.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
irq_cpu.c MT bulletproofing. 2005-10-29 19:32:09 +01:00
kspd.c [MIPS] kpsd and other AP/SP improvements. 2006-04-19 04:14:27 +02:00
linux32.c [PATCH] fix mips sys32_p{read,write} 2006-04-26 07:52:21 -07:00
mips-mt.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
mips_ksyms.c [MIPS] Sort out duplicate exports. 2006-04-19 04:14:14 +02:00
module.c [MIPS] Ignore unresolved weak symbols in modules. 2006-06-06 00:15:10 +01:00
proc.c [MIPS] Treat R14000 like R10000. 2006-06-01 00:28:35 +01:00
process.c [MIPS] FPU affinity for MT ASE. 2006-04-19 04:14:28 +02:00
ptrace.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
ptrace32.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
r4k_fpu.S Support the MIPS32 / MIPS64 DSP ASE. 2005-10-29 19:31:17 +01:00
r4k_switch.S [MIPS] Fix fpu_save_double on 64-bit. 2006-06-19 17:39:13 +01:00
r2300_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
r2300_switch.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
r6000_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
reset.c [MIPS] Rename _machine_power_off to pm_power_off so the kernel builds again. 2006-02-07 13:30:22 +00:00
rtlx.c [MIPS] Cleanup inode->r_dev usage. 2006-04-27 15:13:50 +01:00
scall32-o32.S [PATCH] mips: fix number of mremap arguments 2006-06-23 07:42:56 -07:00
scall64-64.S [MIPS] Wire up sync_file_range(2). 2006-04-19 04:14:14 +02:00
scall64-n32.S [MIPS] Wire up sync_file_range(2). 2006-04-19 04:14:14 +02:00
scall64-o32.S [MIPS] open() forces O_LARGEFILE for o32 on 64bit kernels 2006-06-06 00:15:17 +01:00
semaphore.c Always use ".set mips3" rather than select between "mips2" or "mips3" 2005-10-29 19:31:31 +01:00
setup.c [MIPS] Cleanup memory managment initialization. 2006-06-19 17:39:23 +01:00
signal-common.h [MIPS] Update struct sigcontext member names 2006-06-01 00:28:31 +01:00
signal.c [MIPS] Signal cleanup 2006-03-21 13:27:46 +00:00
signal32.c [MIPS] War on whitespace: cleanup initial spaces followed by tabs. 2006-03-21 13:27:47 +00:00
signal_n32.c [MIPS] fix wrong __user usage in _sysn32_rt_sigsuspend 2006-03-21 13:27:46 +00:00
smp-mt.c [MIPS] FPU affinity for MT ASE. 2006-04-19 04:14:28 +02:00
smp.c [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
smtc-asm.S [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
smtc-proc.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
smtc.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
syscall.c [MIPS] Fix compiler warnings (field width, unused variable) 2006-06-06 00:15:20 +01:00
sysirix.c [PATCH] kernel/sys.c: cleanups 2006-06-25 10:01:06 -07:00
time.c [MIPS] MT: Improved multithreading support. 2006-04-19 04:14:28 +02:00
traps.c [MIPS] Unify mips_fpu_soft_struct and mips_fpu_hard_structs. 2006-06-19 17:39:18 +01:00
unaligned.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
vmlinux.lds.S [MIPS] Use generic STABS_DEBUG macro. 2006-06-01 00:28:33 +01:00
vpe.c [MIPS] Cleanup inode->r_dev usage. 2006-04-27 15:13:50 +01:00