aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/prom
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-15 05:26:54 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:13:04 -0500
commit7890f794e0e6f7dce2a5f4a03ba64b0b3fe306bd (patch)
treea9cc7c67498616a47108c667a9c001f9fe468318 /arch/sparc64/prom
parent63c2a0e598c2fa769a08a6e9ad124bf270b4436e (diff)
[SPARC64]: Add prom_{start,stop}cpu_cpuid().
Use prom_startcpu_cpuid() on SUN4V instead of prom_startcpu(). We should really test for "SUNW,start-cpu-by-cpuid" presence and use it if present even on SUN4U. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/prom')
-rw-r--r--arch/sparc64/prom/misc.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/sparc64/prom/misc.c b/arch/sparc64/prom/misc.c
index 713cbac5f9bf..36d2b9c1622d 100644
--- a/arch/sparc64/prom/misc.c
+++ b/arch/sparc64/prom/misc.c
@@ -308,9 +308,21 @@ int prom_wakeupsystem(void)
308} 308}
309 309
310#ifdef CONFIG_SMP 310#ifdef CONFIG_SMP
311void prom_startcpu(int cpunode, unsigned long pc, unsigned long o0) 311void prom_startcpu(int cpunode, unsigned long pc, unsigned long arg)
312{ 312{
313 p1275_cmd("SUNW,start-cpu", P1275_INOUT(3, 0), cpunode, pc, o0); 313 p1275_cmd("SUNW,start-cpu", P1275_INOUT(3, 0), cpunode, pc, arg);
314}
315
316void prom_startcpu_cpuid(int cpuid, unsigned long pc, unsigned long arg)
317{
318 p1275_cmd("SUNW,start-cpu-by-cpuid", P1275_INOUT(3, 0),
319 cpuid, pc, arg);
320}
321
322void prom_stopcpu_cpuid(int cpuid)
323{
324 p1275_cmd("SUNW,stop-cpu-by-cpuid", P1275_INOUT(1, 0),
325 cpuid);
314} 326}
315 327
316void prom_stopself(void) 328void prom_stopself(void)