diff options
author | 2025-01-28 11:46:33 -0500 | |
---|---|---|
committer | 2025-02-24 16:37:22 -0500 | |
commit | 40ba13b430cb2202ce939a5cd7ff90b7d60aca7f (patch) | |
tree | 90bb5ec892ac3e27a558c7e16accb628bf1f8bcb /rust/helpers/helpers.c | |
parent | ibmvnic: simplify ibmvnic_set_queue_affinity() (diff) | |
download | wireguard-linux-40ba13b430cb2202ce939a5cd7ff90b7d60aca7f.tar.xz wireguard-linux-40ba13b430cb2202ce939a5cd7ff90b7d60aca7f.zip |
powerpc/xmon: simplify xmon_batch_next_cpu()
The function opencodes for_each_cpu_wrap() macro. As a loop termination
condition it uses cpumask_empty(), which is O(N), and it makes the whole
algorithm O(N^2). Switching to for_each_cpu_wrap() simplifies the logic,
and makes the algorithm linear.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions