[PATCH 2/5] linux: bitmap.h: add 'for_each_set_bitrange' iteration macro
Simon Glass
sjg at chromium.org
Tue Dec 26 10:50:07 CET 2023
On Mon, Dec 11, 2023 at 12:21 PM <lukas.funke-oss at weidmueller.com> wrote:
>
> From: Lukas Funke <lukas.funke at weidmueller.com>
>
> Add 'for_each_set_bitrange' (from Linux kernel) in order to iterate
> over each set bitrange of a bitmap. This becomes handy if one wants
> to generate a cpu list i.e. for isolcpu or nohz_full.
>
> Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
> ---
>
> include/linux/bitmap.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list