patch-2.2.5 linux/include/asm-sparc64/smp.h
Next file: linux/include/asm-sparc64/termios.h
Previous file: linux/include/asm-sparc64/pgtable.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sun Mar 28 09:07:47 1999
- Orig file:
v2.2.4/linux/include/asm-sparc64/smp.h
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.4/linux/include/asm-sparc64/smp.h linux/include/asm-sparc64/smp.h
@@ -98,8 +98,17 @@
/* This needn't do anything as we do not sleep the cpu
* inside of the idler task, so an interrupt is not needed
* to get a clean fast response.
+ *
+ * Addendum: We do want it to do something for the signal
+ * delivery case, we detect that by just seeing
+ * if we are trying to send this to an idler or not.
*/
-extern __inline__ void smp_send_reschedule(int cpu) { }
+extern __inline__ void smp_send_reschedule(int cpu)
+{
+ extern void smp_receive_signal(int);
+ if(cpu_data[cpu].idle_volume == 0)
+ smp_receive_signal(cpu);
+}
/* This is a nop as well because we capture all other cpus
* anyways when making the PROM active.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)