diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-08-06 09:02:12 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-08-26 21:16:54 -0400 |
commit | 428ab280a0754656fa09304017b0ce626744cc77 (patch) | |
tree | 90b3973d6451701399c66ea252852bb7d34762a9 /arch/mips/mips-boards | |
parent | d98cc84dd11c126f85675dab8e2aebcbee114a90 (diff) |
[MIPS] SMP: Scatter __cpuinit over the code as needed.
MIPS doesn't do CPU hotplugging yet but since many of the functions don't
even have an __init let's fix this right.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r-- | arch/mips/mips-boards/malta/malta_smtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/mips-boards/malta/malta_smtc.c b/arch/mips/mips-boards/malta/malta_smtc.c index ea8f3bb8ed81..40d782d7d37f 100644 --- a/arch/mips/mips-boards/malta/malta_smtc.c +++ b/arch/mips/mips-boards/malta/malta_smtc.c | |||
@@ -24,7 +24,7 @@ void core_send_ipi(int cpu, unsigned int action) | |||
24 | * Platform "CPU" startup hook | 24 | * Platform "CPU" startup hook |
25 | */ | 25 | */ |
26 | 26 | ||
27 | void prom_boot_secondary(int cpu, struct task_struct *idle) | 27 | void __cpuinit prom_boot_secondary(int cpu, struct task_struct *idle) |
28 | { | 28 | { |
29 | smtc_boot_secondary(cpu, idle); | 29 | smtc_boot_secondary(cpu, idle); |
30 | } | 30 | } |
@@ -33,7 +33,7 @@ void prom_boot_secondary(int cpu, struct task_struct *idle) | |||
33 | * Post-config but pre-boot cleanup entry point | 33 | * Post-config but pre-boot cleanup entry point |
34 | */ | 34 | */ |
35 | 35 | ||
36 | void prom_init_secondary(void) | 36 | void __cpuinit prom_init_secondary(void) |
37 | { | 37 | { |
38 | void smtc_init_secondary(void); | 38 | void smtc_init_secondary(void); |
39 | int myvpe; | 39 | int myvpe; |
@@ -75,7 +75,7 @@ void __init plat_prepare_cpus(unsigned int max_cpus) | |||
75 | * SMP initialization finalization entry point | 75 | * SMP initialization finalization entry point |
76 | */ | 76 | */ |
77 | 77 | ||
78 | void prom_smp_finish(void) | 78 | void __cpuinit prom_smp_finish(void) |
79 | { | 79 | { |
80 | smtc_smp_finish(); | 80 | smtc_smp_finish(); |
81 | } | 81 | } |