android_kernel_xiaomi_sdm845/arch/s390/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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
binfmt_elf32.c [PATCH] s390: task_pt_regs() 2006-01-12 09:08:54 -08:00
bitmap.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_exec_domain.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_linux.c [PATCH] consolidate sys32/compat_adjtimex 2006-03-26 08:56:57 -08:00
compat_linux.h [PATCH] compat: introduce compat_time_t 2005-06-23 09:45:32 -07:00
compat_ptrace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat_signal.c [PATCH] s390: alternate signal stack handling bug 2006-04-28 08:33:47 -07:00
compat_wrapper.S [PATCH] s390: add vmsplice system call 2006-05-15 11:20:55 -07:00
cpcmd.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
crash.c [PATCH] kdump: dynamic per cpu allocation of memory for saving cpu registers 2006-01-10 08:01:26 -08:00
debug.c [PATCH] s390: kzalloc() conversion in arch/s390 2006-03-24 07:33:18 -08:00
ebcdic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry64.S [PATCH] s390: Add support for new syscalls/TIF_RESTORE_SIGMASK 2006-02-01 08:53:24 -08:00
entry.S [PATCH] s390: Add support for new syscalls/TIF_RESTORE_SIGMASK 2006-02-01 08:53:24 -08:00
head31.S [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
head64.S [PATCH] s390: merge common parts of head.S and head64.S 2005-11-07 07:53:34 -08:00
head.S [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
machine_kexec.c Storage class should be first 2006-06-26 18:57:34 +02:00
Makefile [PATCH] sanitize building of fs/compat_ioctl.c 2006-01-10 08:01:33 -08:00
module.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
process.c [PATCH] Notifier chain update: API changes 2006-03-27 08:44:50 -08:00
profile.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ptrace.c [PATCH] drop task argument of audit_syscall_{entry,exit} 2006-05-01 06:06:18 -04:00
reipl64.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
reipl_diag.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
reipl.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
relocate_kernel64.S [PATCH] s390: kexec fixes and improvements. 2005-08-01 21:37:59 -07:00
relocate_kernel.S [PATCH] s390: kexec fixes and improvements. 2005-08-01 21:37:59 -07:00
s390_ext.c [PATCH] s390: external call performance 2005-07-27 16:26:04 -07:00
s390_ksyms.c [PATCH] don't include ioctl32.h in drivers 2006-01-10 08:01:34 -08:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PATCH] s390: setup.c cleanup + build fix 2006-06-25 10:01:25 -07:00
signal.c [PATCH] s390: bug in setup_rt_frame 2006-05-01 18:17:46 -07:00
smp.c [PATCH] node hotplug: register cpu: remove node struct 2006-06-27 17:32:37 -07:00
sys_s390.c [PATCH] s390 misc __user annotations 2006-02-08 01:04:23 -05:00
syscalls.S [PATCH] s390: add vmsplice system call 2006-05-15 11:20:55 -07:00
time.c [PATCH] s390: fix typo in stop_hz_timer. 2006-05-25 12:09:55 -07:00
traps.c [PATCH] s390 misc __user annotations 2006-02-08 01:04:23 -05:00
vmlinux.lds.S [PATCH] s390: add read_mostly optimization 2006-04-28 08:33:48 -07:00
vtime.c spelling fixes 2006-06-26 18:35:02 +02:00