Re: [PATCH v3 10/35] dmaengine: idxd: optimize perfmon_assign_event()

From: Fenghua Yu
Date: Mon Dec 11 2023 - 21:34:17 EST




On 12/11/23 18:27, Yury Norov wrote:
The function searches used_mask for a set bit in a for-loop bit by bit.
Simplify it by using atomic find_and_set_bit(), and make a nice
one-liner.

Signed-off-by: Yury Norov <yury.norov@xxxxxxxxx>
Reviewed-by: Dave Jiang <dave.jiang@xxxxxxxxx>
Acked-by: Vinod Koul <vkoul@xxxxxxxxxx>

Reviewed-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>

Thanks.

-Fenghua