diff options
Diffstat (limited to 'arch/sparc64/kernel/smp.c')
-rw-r--r-- | arch/sparc64/kernel/smp.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 5d90ee9aebf1..797a65493fb8 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c | |||
@@ -168,6 +168,9 @@ void __init smp_callin(void) | |||
168 | rmb(); | 168 | rmb(); |
169 | 169 | ||
170 | cpu_set(cpuid, cpu_online_map); | 170 | cpu_set(cpuid, cpu_online_map); |
171 | |||
172 | /* idle thread is expected to have preempt disabled */ | ||
173 | preempt_disable(); | ||
171 | } | 174 | } |
172 | 175 | ||
173 | void cpu_panic(void) | 176 | void cpu_panic(void) |
@@ -1149,20 +1152,9 @@ void __init smp_cpus_done(unsigned int max_cpus) | |||
1149 | (bogosum/(5000/HZ))%100); | 1152 | (bogosum/(5000/HZ))%100); |
1150 | } | 1153 | } |
1151 | 1154 | ||
1152 | /* This needn't do anything as we do not sleep the cpu | ||
1153 | * inside of the idler task, so an interrupt is not needed | ||
1154 | * to get a clean fast response. | ||
1155 | * | ||
1156 | * XXX Reverify this assumption... -DaveM | ||
1157 | * | ||
1158 | * Addendum: We do want it to do something for the signal | ||
1159 | * delivery case, we detect that by just seeing | ||
1160 | * if we are trying to send this to an idler or not. | ||
1161 | */ | ||
1162 | void smp_send_reschedule(int cpu) | 1155 | void smp_send_reschedule(int cpu) |
1163 | { | 1156 | { |
1164 | if (cpu_data(cpu).idle_volume == 0) | 1157 | smp_receive_signal(cpu); |
1165 | smp_receive_signal(cpu); | ||
1166 | } | 1158 | } |
1167 | 1159 | ||
1168 | /* This is a nop because we capture all other cpus | 1160 | /* This is a nop because we capture all other cpus |