diff options
author | Vitaly Kuznetsov <[email protected]> | 2022-01-28 11:34:12 +0100 |
---|---|---|
committer | Wei Liu <[email protected]> | 2022-02-03 12:47:31 +0000 |
commit | 4ee524587105011ef43e5bd3ef5ed019715363dd (patch) | |
tree | 77d6691f05bd9cb5e19ef4b2bcf01ff9d9738f7b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | de96e8a09889b35dd8d1cb6d19ef2bb123b05be1 (diff) |
Drivers: hv: Compare cpumasks and not their weights in init_vp_index()
The condition is supposed to check whether 'allocated_mask' got fully
exhausted, i.e. there's no free CPU on the NUMA node left so we have
to use one of the already used CPUs. As only bits which correspond
to CPUs from 'cpumask_of_node(numa_node)' get set in 'allocated_mask',
checking for the equal weights is technically correct but not obvious.
Let's compare cpumasks directly.
No functional change intended.
Suggested-by: Michael Kelley <[email protected]>
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions