Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 2008 11:38:42 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 146102 for review
Message-ID:  <200807281138.m6SBcghj091420@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=146102

Change 146102 by jhb@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807281138.m6SBcghj091420>