Message ID | 147151445917.29674.7540829495336046741.stgit@Solace.fritz.box (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 18/08/16 11:00, Dario Faggioli wrote: > In fact, csched_vcpu_acct() is called by csched_tick() > _only_ on non idle vcpus already. > > There's even an ASSERT() already in place at the top > of it which, by checking that svc->sdom is not NULL, > guarantees that the function is not being called on > the idle domain. > > Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: George Dunlap <george.dunlap@citrix.com>
diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index daace81..71a8b1d 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -966,11 +966,8 @@ csched_vcpu_acct(struct csched_private *prv, unsigned int cpu) svc->vcpu->vcpu_id); } - /* - * Update credits - */ - if ( !is_idle_vcpu(svc->vcpu) ) - burn_credits(svc, NOW()); + /* Update credits. */ + burn_credits(svc, NOW()); /* * Put this VCPU and domain back on the active list if it was
In fact, csched_vcpu_acct() is called by csched_tick() _only_ on non idle vcpus already. There's even an ASSERT() already in place at the top of it which, by checking that svc->sdom is not NULL, guarantees that the function is not being called on the idle domain. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> --- Cc: George Dunlap <george.dunlap@eu.citrix.com> --- xen/common/sched_credit.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)