xen: cpupool: small optimization when moving between pools

If the domain is already where we want it to go,
there's not much to do indeed.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Dario Faggioli authored and George Dunlap committed 2016-08-03 14:14:08 +01:00
1 parent f3d47501db
commit f6bde162c4
1 file changed
+3
+3
View File
@@ -232,6 +232,9 @@ static int cpupool_move_domain_locked(struct domain *d, struct cpupool *c)
{
int ret;
if ( unlikely(d->cpupool == c) )
return 0;
d->cpupool->n_dom--;
ret = sched_move_domain(d, c);
if ( ret )
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.