Skip to contentSkip to conversation

take3: Updated CPU Hotplug patches for IA64 (pj blessed) Patch [3/7]

PATCH Ashok Raj 1 participant 1 message May 4, 2004

lore
Share & tools
lore

Ashok Raj

author
#0 lore raw

Name: sysfs_ia64.patch
Author: Ashok Raj (Intel Corporation)
D: Creation of sysfs via topology_init() creates sysfs entries. The creation of
D: the online control file is created separately when the cpu_up is invoked
D: in arch independent code.
---

---

 linux-2.6.5-lhcs-root/arch/ia64/dig/Makefile   |    5 ++
 linux-2.6.5-lhcs-root/arch/ia64/dig/topology.c |   43 +++++++++++++++++++++++++
 linux-2.6.5-lhcs-root/include/asm-ia64/cpu.h   |   17 +++++++++
 3 files changed, 65 insertions(+)
arch/ia64/dig/Makefile renamed from arch/ia64/dig/Makefile~sysfs_ia64 +5 -0
diff -puN arch/ia64/dig/Makefile~sysfs_ia64 arch/ia64/dig/Makefile
@@ -6,4 +6,9 @@
 #
 
 obj-y := setup.o
+
+ifndef CONFIG_NUMA
+obj-$(CONFIG_IA64_DIG) += topology.o
+endif
+
 obj-$(CONFIG_IA64_GENERIC) += machvec.o
arch/ia64/dig/topology.c new file +43 -0

43 lines not on this page · raw message

include/asm-ia64/cpu.h new file +17 -0
diff -puN /dev/null include/asm-ia64/cpu.h
@@ -0,0 +1,17 @@
+#ifndef _ASM_IA64_CPU_H_
+#define _ASM_IA64_CPU_H_
+
+#include <linux/device.h>
+#include <linux/cpu.h>
+#include <linux/topology.h>
+#include <linux/percpu.h>
+
+struct ia64_cpu {
+	struct cpu cpu;
+};
+
+DECLARE_PER_CPU(struct ia64_cpu, cpu_devices);
+
+DECLARE_PER_CPU(int, cpu_state);
+
+#endif /* _ASM_IA64_CPU_H_ */

_