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/sibyte | |
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/sibyte')
-rw-r--r-- | arch/mips/sibyte/cfe/smp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/sibyte/cfe/smp.c b/arch/mips/sibyte/cfe/smp.c index eab20e2db323..5de4cff9d14a 100644 --- a/arch/mips/sibyte/cfe/smp.c +++ b/arch/mips/sibyte/cfe/smp.c | |||
@@ -58,7 +58,7 @@ void __init plat_prepare_cpus(unsigned int max_cpus) | |||
58 | * Setup the PC, SP, and GP of a secondary processor and start it | 58 | * Setup the PC, SP, and GP of a secondary processor and start it |
59 | * running! | 59 | * running! |
60 | */ | 60 | */ |
61 | void prom_boot_secondary(int cpu, struct task_struct *idle) | 61 | void __cpuinit prom_boot_secondary(int cpu, struct task_struct *idle) |
62 | { | 62 | { |
63 | int retval; | 63 | int retval; |
64 | 64 | ||
@@ -72,7 +72,7 @@ void prom_boot_secondary(int cpu, struct task_struct *idle) | |||
72 | /* | 72 | /* |
73 | * Code to run on secondary just after probing the CPU | 73 | * Code to run on secondary just after probing the CPU |
74 | */ | 74 | */ |
75 | void prom_init_secondary(void) | 75 | void __cpuinit prom_init_secondary(void) |
76 | { | 76 | { |
77 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 77 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) |
78 | extern void bcm1480_smp_init(void); | 78 | extern void bcm1480_smp_init(void); |
@@ -89,7 +89,7 @@ void prom_init_secondary(void) | |||
89 | * Do any tidying up before marking online and running the idle | 89 | * Do any tidying up before marking online and running the idle |
90 | * loop | 90 | * loop |
91 | */ | 91 | */ |
92 | void prom_smp_finish(void) | 92 | void __cpuinit prom_smp_finish(void) |
93 | { | 93 | { |
94 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 94 | #if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) |
95 | extern void bcm1480_smp_finish(void); | 95 | extern void bcm1480_smp_finish(void); |