xen: credit1: don't rate limit context switches in case of yields
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 30 Sep 2016 02:53:32 +0000 (04:53 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 30 Sep 2016 13:46:36 +0000 (14:46 +0100)
commit9fdd2f3c9ccb5b51c4610eb535d7ae8bc8e27c8a
tree27a168f3b7516022ae3fdcd4e52760594fa1400d
parent0053127890ebe9cafbd232752636a15881e4915a
xen: credit1: don't rate limit context switches in case of yields

Rate limiting has been primarily introduced to avoid too
heavy context switch rate due to interrupts, and, in
general, asynchronous events.

If a vcpu "voluntarily" yields, we really should let it
give up the cpu for a while.

In fact, it may be that it is yielding because it's about
to start spinning, and there's few point in forcing a vcpu
to spin for (potentially) the entire rate-limiting period.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit.c