Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2008 04:39:36 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136145 for review
Message-ID:  <200802250439.m1P4daoq021010@repoman.freebsd.org>

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

Change 136145 by kmacy@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);



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