mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
0fc44159bf
When new node becomes enable by hot-add, new sysfs file must be created for new node. So, if new node is enabled by add_memory(), register_one_node() is called to create it. In addition, I386's arch_register_node() and a part of register_nodes() of powerpc are consolidated to register_one_node() as a generic_code(). This is tested by Tiger4(IPF) with node hot-plug emulation. Signed-off-by: Keiichiro Tokunaga <tokuanga.keiich@jp.fujitsu.com> Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 lines
395 B
C
20 lines
395 B
C
#ifndef _ASM_I386_CPU_H_
|
|
#define _ASM_I386_CPU_H_
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/cpu.h>
|
|
#include <linux/topology.h>
|
|
#include <linux/nodemask.h>
|
|
#include <linux/percpu.h>
|
|
|
|
struct i386_cpu {
|
|
struct cpu cpu;
|
|
};
|
|
extern int arch_register_cpu(int num);
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
extern void arch_unregister_cpu(int);
|
|
#endif
|
|
|
|
DECLARE_PER_CPU(int, cpu_state);
|
|
#endif /* _ASM_I386_CPU_H_ */
|