Home
last modified time | relevance | path

Searched hist:"5 f8dac3fc7bae246cc666d0df1ba37fc077efc3d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_roce.cdiff 5f8dac3fc7bae246cc666d0df1ba37fc077efc3d Wed Feb 09 17:54:34 CST 2022 Yury Norov <yury.norov@gmail.com> qed: replace bitmap_weight with bitmap_empty in qed_roce_stop()

qed_roce_stop() calls bitmap_weight() to check if any bit of a given
bitmap is set. We can do it more efficiently with bitmap_empty() because
bitmap_empty() stops traversing the bitmap as soon as it finds first set
bit, while bitmap_weight() counts all bits unconditionally.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Prabhakar Kushwaha <pkushwaha@marvell.com>