diff options
Diffstat (limited to 'arch/mips/mips-boards/sim/sim_smp.c')
| -rw-r--r-- | arch/mips/mips-boards/sim/sim_smp.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/mips/mips-boards/sim/sim_smp.c b/arch/mips/mips-boards/sim/sim_smp.c index a9f0c2bfe4ad..b7084e7c4bf9 100644 --- a/arch/mips/mips-boards/sim/sim_smp.c +++ b/arch/mips/mips-boards/sim/sim_smp.c | |||
| @@ -44,8 +44,6 @@ | |||
| 44 | void core_send_ipi(int cpu, unsigned int action) | 44 | void core_send_ipi(int cpu, unsigned int action) |
| 45 | { | 45 | { |
| 46 | #ifdef CONFIG_MIPS_MT_SMTC | 46 | #ifdef CONFIG_MIPS_MT_SMTC |
| 47 | void smtc_send_ipi(int, int, unsigned int); | ||
| 48 | |||
| 49 | smtc_send_ipi(cpu, LINUX_SMP_IPI, action); | 47 | smtc_send_ipi(cpu, LINUX_SMP_IPI, action); |
| 50 | #endif /* CONFIG_MIPS_MT_SMTC */ | 48 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 51 | /* "CPU" may be TC of same VPE, VPE of same CPU, or different CPU */ | 49 | /* "CPU" may be TC of same VPE, VPE of same CPU, or different CPU */ |
| @@ -59,15 +57,8 @@ void core_send_ipi(int cpu, unsigned int action) | |||
| 59 | void __init prom_build_cpu_map(void) | 57 | void __init prom_build_cpu_map(void) |
| 60 | { | 58 | { |
| 61 | #ifdef CONFIG_MIPS_MT_SMTC | 59 | #ifdef CONFIG_MIPS_MT_SMTC |
| 62 | extern int mipsmt_build_cpu_map(int startslot); | ||
| 63 | int nextslot; | 60 | int nextslot; |
| 64 | 61 | ||
| 65 | cpus_clear(phys_cpu_present_map); | ||
| 66 | |||
| 67 | /* Register the boot CPU */ | ||
| 68 | |||
| 69 | smp_prepare_boot_cpu(); | ||
| 70 | |||
| 71 | /* | 62 | /* |
| 72 | * As of November, 2004, MIPSsim only simulates one core | 63 | * As of November, 2004, MIPSsim only simulates one core |
| 73 | * at a time. However, that core may be a MIPS MT core | 64 | * at a time. However, that core may be a MIPS MT core |
| @@ -87,8 +78,6 @@ void __init prom_build_cpu_map(void) | |||
| 87 | void prom_boot_secondary(int cpu, struct task_struct *idle) | 78 | void prom_boot_secondary(int cpu, struct task_struct *idle) |
| 88 | { | 79 | { |
| 89 | #ifdef CONFIG_MIPS_MT_SMTC | 80 | #ifdef CONFIG_MIPS_MT_SMTC |
| 90 | extern void smtc_boot_secondary(int cpu, struct task_struct *t); | ||
| 91 | |||
| 92 | smtc_boot_secondary(cpu, idle); | 81 | smtc_boot_secondary(cpu, idle); |
| 93 | #endif /* CONFIG_MIPS_MT_SMTC */ | 82 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 94 | } | 83 | } |
| @@ -113,7 +102,6 @@ void prom_init_secondary(void) | |||
| 113 | void prom_prepare_cpus(unsigned int max_cpus) | 102 | void prom_prepare_cpus(unsigned int max_cpus) |
| 114 | { | 103 | { |
| 115 | #ifdef CONFIG_MIPS_MT_SMTC | 104 | #ifdef CONFIG_MIPS_MT_SMTC |
| 116 | void mipsmt_prepare_cpus(int c); | ||
| 117 | /* | 105 | /* |
| 118 | * As noted above, we can assume a single CPU for now | 106 | * As noted above, we can assume a single CPU for now |
| 119 | * but it may be multithreaded. | 107 | * but it may be multithreaded. |
| @@ -132,8 +120,6 @@ void prom_prepare_cpus(unsigned int max_cpus) | |||
| 132 | void prom_smp_finish(void) | 120 | void prom_smp_finish(void) |
| 133 | { | 121 | { |
| 134 | #ifdef CONFIG_MIPS_MT_SMTC | 122 | #ifdef CONFIG_MIPS_MT_SMTC |
| 135 | void smtc_smp_finish(void); | ||
| 136 | |||
| 137 | smtc_smp_finish(); | 123 | smtc_smp_finish(); |
| 138 | #endif /* CONFIG_MIPS_MT_SMTC */ | 124 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 139 | } | 125 | } |
