linux/drivers/crypto/intel/iaa
Tom Zanussi 8f0e0cf74c 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>
2024-04-12 15:07:52 +08:00
..
iaa_crypto_comp_fixed.c crypto: iaa - Remove header table code 2024-01-26 16:39:32 +08:00
iaa_crypto_main.c crypto: iaa - Use cpumask_weight() when rebalancing 2024-04-12 15:07:52 +08:00
iaa_crypto_stats.c crypto: iaa - Change iaa statistics to atomic64_t 2024-04-02 10:49:38 +08:00
iaa_crypto_stats.h crypto: iaa - Remove comp/decomp delay statistics 2024-04-02 10:49:38 +08:00
iaa_crypto.h crypto: iaa - Change iaa statistics to atomic64_t 2024-04-02 10:49:38 +08:00
Kconfig crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00
Makefile crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00