Re: [Xen-devel] [PATCH v2] xen: sched: removal of redundant check in Credit

2016-12-15 Thread Dario Faggioli
On Thu, 2016-12-15 at 23:39 +0530, Praveen Kumar wrote: > The patch gets rid of a redundant check in csched_vcpu_acct. In fact, > the function is only called from csched_tick, which already checks > that current is not the idle vcpu. The patch also adds an ASSERT to > the same effect, in order to m

[Xen-devel] [PATCH v2] xen: sched: removal of redundant check in Credit

2016-12-15 Thread Praveen Kumar
The patch gets rid of a redundant check in csched_vcpu_acct. In fact, the function is only called from csched_tick, which already checks that current is not the idle vcpu. The patch also adds an ASSERT to the same effect, in order to make assumption ( i.e., no calling this on idle vcpus) even more