On 7/29/19 11:49 AM, Dario Faggioli wrote: > cpumask_weight() is known to be expensive. In Credit2, we use it in > load-balancing, but only for knowing how many CPUs are active in a > runqueue. > > Keeping such count in an integer field of the per-runqueue data > structure we have, completely avoids the need for cpumask_weight(). > > While there, remove as much other uses of it as we can, even if not in > hot-paths. > > Signed-off-by: Dario Faggioli <[email protected]>
Looks good, thanks. Reviewed-by: George Dunlap <[email protected]> _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
