PERFORCE change 146102 for review
John Baldwin
jhb at FreeBSD.org
Mon Jul 28 11:38:43 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=146102
Change 146102 by jhb at jhb_zion on 2008/07/28 11:37:48
- Just force a context switch at the user boundary for running threads
that are on an invalid CPU.
- Handle running threads on other CPUs via an IPI_AST IPI.
Affected files ...
.. //depot/projects/smpng/sys/kern/sched_4bsd.c#79 edit
Differences ...
==== //depot/projects/smpng/sys/kern/sched_4bsd.c#79 (text+ko) ====
@@ -1621,7 +1621,9 @@
if (THREAD_CAN_SCHED(td, td->td_oncpu))
return;
- mi_switch(SW_VOL, NULL);
+ td->td_flags |= TDF_NEEDRESCHED;
+ if (td != curthread)
+ ipi_selected(1 << cpu, IPI_AST);
break;
default:
break;
More information about the p4-projects
mailing list