diff options
Diffstat (limited to 'arch/alpha/kernel/smp.c')
-rw-r--r-- | arch/alpha/kernel/smp.c | 15 |
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 | */ |
119 | void __cpuinit | 119 | void |
120 | smp_callin(void) | 120 | smp_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 | */ |
197 | static void __cpuinit | 197 | static void |
198 | send_secondary_console_msg(char *str, int cpuid) | 198 | send_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 | */ |
288 | static int __cpuinit | 289 | static int |
289 | secondary_cpu_start(int cpuid, struct task_struct *idle) | 290 | secondary_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 | */ |
359 | static int __cpuinit | 360 | static int |
360 | smp_boot_one_cpu(int cpuid, struct task_struct *idle) | 361 | smp_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 | ||
475 | int __cpuinit | 476 | int |
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); |