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@bakeyournoodle.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-30 12:10:34 +01:00
1 parent 4b3fd3a9f3
commit effc516f0d
1 file changed
+1 -5
+1 -5
View File
@@ -293,11 +293,7 @@ void domain_pause(struct domain *d)
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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.