forked from xen-troops/xen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen: sched: improve checking soft-affinity
The function has_soft_affinity() determines whether the soft-affinity of a vcpu will have any effect -- that is, whether the affinity will have any difference, scheduling-wise, from an empty soft-affinity mask. Such function takes a custom cpumask as its third parameter for better flexibility; but that mask is different from the vCPU's hard-affinity only in one case. Getting rid of that parameter not only simplifies the function, but enables optimizing the soft affinity check. It's mostly mechanical, with the exception of sched_credit.c:_cshed_cpu_pick(), which was the one case where we passed in something other than the existing hard-affinity. Signed-off-by: Dario Faggioli <[email protected]> Reviewed-by: George Dunlap <[email protected]>
- Loading branch information
Showing
4 changed files
with
42 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters