[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] domain_pause duplicates the code from vcpu_pause. Eliminate the



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 72f79d68e86c6371648174adf5aa776f2ce13970
# Parent  3399f4b9396a907890d2bc86e0b918d1ac7d7ab6
domain_pause duplicates the code from vcpu_pause. Eliminate the
duplicate code and make domain_pause a mirror of the existing
domain_unpause.

Signed-off-by: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>

diff -r 3399f4b9396a -r 72f79d68e86c xen/common/domain.c
--- a/xen/common/domain.c       Wed Nov 30 11:07:28 2005
+++ b/xen/common/domain.c       Wed Nov 30 11:10:34 2005
@@ -293,11 +293,7 @@
     struct vcpu *v;
 
     for_each_vcpu( d, v )
-    {
-        BUG_ON(v == current);
-        atomic_inc(&v->pausecnt);
-        vcpu_sleep_sync(v);
-    }
+        vcpu_pause(v);
 
     sync_pagetable_state(d);
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.