sched: removal of redundant check in Credit
authorPraveen Kumar <kpraveen.lkml@gmail.com>
Wed, 21 Dec 2016 15:53:35 +0000 (16:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 21 Dec 2016 15:53:35 +0000 (16:53 +0100)
commit7844ec6b5475005ebef5c1767546482838993b7c
tree6fa51adf548fb2287c775bf417de3f3243066e00
parent74dcd0ce6f4fadce8093e54f0fc1a45426577e13
sched: removal of redundant check in Credit

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 clear and as a guard for future mis-use.

Signed-off-by: Praveen Kumar <kpraveen.lkml@gmail.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit.c