PERFORCE change 136145 for review

Kip Macy kmacy at FreeBSD.org
Mon Feb 25 04:39:38 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=136145

Change 136145 by kmacy at pandemonium:kmacy:xen31 on 2008/02/25 04:38:42

	make sure any pending updates have happened before we context switch

Affected files ...

.. //depot/projects/xen31/sys/kern/kern_switch.c#3 edit

Differences ...

==== //depot/projects/xen31/sys/kern/kern_switch.c#3 (text+ko) ====

@@ -179,6 +179,9 @@
 		td->td_critnest = 0;
 		if (td->td_owepreempt) {
 			td->td_critnest = 1;
+#ifdef XEN			
+			PT_UPDATES_FLUSH();
+#endif			
 			thread_lock(td);
 			td->td_critnest--;
 			SCHED_STAT_INC(switch_owepreempt);


More information about the p4-projects mailing list