[PATCH][6/6] CPU Hotplug PPC

Zwane Mwaikambo (zwane@holomorphy.com)
Mon, 3 Feb 2003 06:39:06 -0500 (EST)


Hi Rusty, Anton,
Nothing was touched here, just a mindless sync.

Zwane

arch/ppc/kernel/smp.c | 11 +++++++++++
include/asm-ppc/smp.h | 2 ++
2 files changed, 13 insertions(+)

Index: linux-2.5.59-lch2/arch/ppc/kernel/smp.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.59/arch/ppc/kernel/smp.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- linux-2.5.59-lch2/arch/ppc/kernel/smp.c 17 Jan 2003 11:14:47 -0000 1.1.1.1
+++ linux-2.5.59-lch2/arch/ppc/kernel/smp.c 20 Jan 2003 13:48:26 -0000 1.1.1.1.2.1
@@ -441,6 +441,17 @@
return 0;
}

+int __cpu_disable(unsigned int cpu)
+{
+ return -ENOSYS;
+}
+
+/* Since we fail __cpu_disable, this is never called. */
+void __cpu_die(unsigned int cpu)
+{
+ BUG();
+}
+
void smp_cpus_done(unsigned int max_cpus)
{
smp_ops->setup_cpu(0);
Index: linux-2.5.59-lch2/include/asm-ppc/smp.h
===================================================================
RCS file: /build/cvsroot/linux-2.5.59/include/asm-ppc/smp.h,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- linux-2.5.59-lch2/include/asm-ppc/smp.h 17 Jan 2003 11:16:05 -0000 1.1.1.1
+++ linux-2.5.59-lch2/include/asm-ppc/smp.h 20 Jan 2003 13:48:27 -0000 1.1.1.1.2.1
@@ -62,6 +62,8 @@
}

extern int __cpu_up(unsigned int cpu);
+extern int __cpu_disable(void);
+extern void __cpu_die(unsigned int cpu);

extern int smp_hw_index[];
#define hard_smp_processor_id() (smp_hw_index[smp_processor_id()])

-- 
function.linuxpower.ca

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/