[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen: cpupool: small optimization when moving between pools
commit f6bde162c4165f7e83f9618cc13dc3aa2af4b6dd Author: Dario Faggioli <dario.faggioli@xxxxxxxxxx> AuthorDate: Wed Aug 3 13:31:49 2016 +0100 Commit: George Dunlap <george.dunlap@xxxxxxxxxx> CommitDate: Wed Aug 3 14:14:08 2016 +0100 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@xxxxxxxxxx> Reviewed-by: Juergen Gross <jgross@xxxxxxxx> --- xen/common/cpupool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/common/cpupool.c b/xen/common/cpupool.c index 5dacc61..9998394 100644 --- a/xen/common/cpupool.c +++ b/xen/common/cpupool.c @@ -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 ) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |