aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/alpha/kernel/smp.c')
-rw-r--r--arch/alpha/kernel/smp.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
index 7b60834fb4b2..9dbbcb3b9146 100644
--- a/arch/alpha/kernel/smp.c
+++ b/arch/alpha/kernel/smp.c
@@ -116,7 +116,7 @@ wait_boot_cpu_to_stop(int cpuid)
116/* 116/*
117 * Where secondaries begin a life of C. 117 * Where secondaries begin a life of C.
118 */ 118 */
119void __cpuinit 119void
120smp_callin(void) 120smp_callin(void)
121{ 121{
122 int cpuid = hard_smp_processor_id(); 122 int cpuid = hard_smp_processor_id();
@@ -194,7 +194,7 @@ wait_for_txrdy (unsigned long cpumask)
194 * Send a message to a secondary's console. "START" is one such 194 * Send a message to a secondary's console. "START" is one such
195 * interesting message. ;-) 195 * interesting message. ;-)
196 */ 196 */
197static void __cpuinit 197static void
198send_secondary_console_msg(char *str, int cpuid) 198send_secondary_console_msg(char *str, int cpuid)
199{ 199{
200 struct percpu_struct *cpu; 200 struct percpu_struct *cpu;
@@ -264,9 +264,10 @@ recv_secondary_console_msg(void)
264 if (cnt <= 0 || cnt >= 80) 264 if (cnt <= 0 || cnt >= 80)
265 strcpy(buf, "<<< BOGUS MSG >>>"); 265 strcpy(buf, "<<< BOGUS MSG >>>");
266 else { 266 else {
267 cp1 = (char *) &cpu->ipc_buffer[11]; 267 cp1 = (char *) &cpu->ipc_buffer[1];
268 cp2 = buf; 268 cp2 = buf;
269 strcpy(cp2, cp1); 269 memcpy(cp2, cp1, cnt);
270 cp2[cnt] = '\0';
270 271
271 while ((cp2 = strchr(cp2, '\r')) != 0) { 272 while ((cp2 = strchr(cp2, '\r')) != 0) {
272 *cp2 = ' '; 273 *cp2 = ' ';
@@ -285,7 +286,7 @@ recv_secondary_console_msg(void)
285/* 286/*
286 * Convince the console to have a secondary cpu begin execution. 287 * Convince the console to have a secondary cpu begin execution.
287 */ 288 */
288static int __cpuinit 289static int
289secondary_cpu_start(int cpuid, struct task_struct *idle) 290secondary_cpu_start(int cpuid, struct task_struct *idle)
290{ 291{
291 struct percpu_struct *cpu; 292 struct percpu_struct *cpu;
@@ -356,7 +357,7 @@ secondary_cpu_start(int cpuid, struct task_struct *idle)
356/* 357/*
357 * Bring one cpu online. 358 * Bring one cpu online.
358 */ 359 */
359static int __cpuinit 360static int
360smp_boot_one_cpu(int cpuid, struct task_struct *idle) 361smp_boot_one_cpu(int cpuid, struct task_struct *idle)
361{ 362{
362 unsigned long timeout; 363 unsigned long timeout;
@@ -472,7 +473,7 @@ smp_prepare_boot_cpu(void)
472{ 473{
473} 474}
474 475
475int __cpuinit 476int
476__cpu_up(unsigned int cpu, struct task_struct *tidle) 477__cpu_up(unsigned int cpu, struct task_struct *tidle)
477{ 478{
478 smp_boot_one_cpu(cpu, tidle); 479 smp_boot_one_cpu(cpu, tidle);