Re: [PATCH 08/49] drm: replace bitmap_weight with bitmap_empty where appropriate

2022-02-10 Thread Dmitry Baryshkov
On Fri, 11 Feb 2022 at 02:09, Yury Norov wrote: > > smp_request_block() in drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c calls > bitmap_weight() to check if any bit of a given bitmap is set. It's > better to use bitmap_empty() in that case because bitmap_empty() stops > traversing the bitmap as soon as

[PATCH 08/49] drm: replace bitmap_weight with bitmap_empty where appropriate

2022-02-10 Thread Yury Norov
smp_request_block() in drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c calls bitmap_weight() to check if any bit of a given bitmap is set. It's better to use bitmap_empty() in that case because bitmap_empty() stops traversing the bitmap as soon as it finds first set bit, while bitmap_weight() counts all b