Commit 40ba13b4 authored by Yury Norov's avatar Yury Norov
Browse files

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: default avatarYury Norov <yury.norov@gmail.com>
parent 2a402aa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment