PERFORCE change 132282 for review
Kip Macy
kmacy at FreeBSD.org
Tue Jan 1 20:10:34 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132282
Change 132282 by kmacy at pandemonium:kmacy:xen31 on 2008/01/02 04:10:23
use HYPERVISOR_yield to wait for updates if init hasn't run yet
Affected files ...
.. //depot/projects/xen31/sys/xen/xenbus/xenbus_xs.c#8 edit
Differences ...
==== //depot/projects/xen31/sys/xen/xenbus/xenbus_xs.c#8 (text+ko) ====
@@ -137,13 +137,15 @@
return xsd_errors[i].errnum;
}
+extern int scheduler_running;
+
static void *read_reply(enum xsd_sockmsg_type *type, unsigned int *len)
{
struct xs_stored_msg *msg;
char *body;
int i;
- if (HYPERVISOR_shared_info->evtchn_mask[curcpu] & 0x2) {
+ if (scheduler_running == 0) {
/*
* Give other domain time to run :-/
*/
More information about the p4-projects
mailing list