diff options
| author | Yury Norov <[email protected]> | 2021-08-14 21:17:10 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-01-15 16:47:31 +0000 |
| commit | 801a57365fc836d7ec866e2069d0b21d79925c1e (patch) | |
| tree | 76af2ac9496f91c85eb00a66be42235c82a1bbc6 /lib/test_bitmap.c | |
| parent | Replace for_each_*_bit_from() with for_each_*_bit() where appropriate (diff) | |
| download | kernel-801a57365fc836d7ec866e2069d0b21d79925c1e.tar.gz kernel-801a57365fc836d7ec866e2069d0b21d79925c1e.zip | |
mm/percpu: micro-optimize pcpu_is_populated()
bitmap_next_clear_region() calls find_next_zero_bit() and find_next_bit()
sequentially to find a range of clear bits. In case of pcpu_is_populated()
there's a chance to return earlier if bitmap has all bits set.
Signed-off-by: Yury Norov <[email protected]>
Tested-by: Wolfram Sang <[email protected]>
Acked-by: Dennis Zhou <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
