xen: credit2: always mark a tickled pCPU as... tickled!
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 1 Mar 2017 16:56:34 +0000 (16:56 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 1 Mar 2017 16:56:34 +0000 (16:56 +0000)
commita76645240bd14e964e85dbc975a8989edea6aa27
tree5691712f906683d38bf970566821ef0a4ff5e3a7
parente63d8abbe760fce8507549fd5e46d337beca7244
xen: credit2: always mark a tickled pCPU as... tickled!

In fact, whether or not a pCPU has been tickled, and is
therefore about to re-schedule, is something we look at
and base decisions on in various places.

So, let's make sure that we do that basing on accurate
information.

While there, also tweak a little bit smt_idle_mask_clear()
(used for implementing SMT support), so that it only alter
the relevant cpumask when there is the actual need for this.
(This is only for reduced overhead, behavior remains the
same).

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