diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2024-04-05 13:57:30 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-04-12 15:07:52 +0800 |
commit | 8f0e0cf74ccef41b383daddcf5447bba655031b3 (patch) | |
tree | 71472f48887d386090bda7a3f14fe7175dfde305 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3ba2ae361402f28754adf873954a22bf97b856a9 (diff) |
crypto: iaa - Use cpumask_weight() when rebalancing
If some cpus are offlined, or if the node mask is smaller than
expected, the 'nonexistent cpu' warning in rebalance_wq_table() may be
erroneously triggered.
Use cpumask_weight() to make sure we only iterate over the exact
number of cpus in the mask.
Also use num_possible_cpus() instead of num_online_cpus() to make sure
all slots in the wq table are initialized.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions