mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
f3d47501db
commit
f6bde162c4
1 file changed
+3
@@ -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 )
|
||||
|
||||