mbox series

[0/2] xen: sched/Credit2: small and trivial improvements

Message ID 155577364571.25746.11988517450711182732.stgit@wayrath (mailing list archive)
Headers show
Series xen: sched/Credit2: small and trivial improvements | expand

Message

Dario Faggioli April 20, 2019, 3:24 p.m. UTC
Namely:
1. get rid of cpumask_weight() in hot paths, in Credit2;
2. checking whether prev==next in context_switch() is pointless.

Regards,
Dario
---
Dario Faggioli (2):
      xen: credit2: avoid using cpumask_weight() in hot-paths
      xen: sched: we never get into context_switch() with prev==next

 xen/arch/arm/domain.c      |    3 +--
 xen/arch/x86/domain.c      |   22 ++++++++--------------
 xen/common/sched_credit2.c |   21 ++++++++++++++++-----
 3 files changed, 25 insertions(+), 21 deletions(-)

--
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)