lkml.org 
[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][6/6] CPU Hotplug PPC
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/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.035 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site