Re: [patch 11/31] x86/fpu/xstate: Provide and use for_each_xfeature()

From: Borislav Petkov
Date: Tue Oct 12 2021 - 12:46:04 EST


On Tue, Oct 12, 2021 at 02:00:14AM +0200, Thomas Gleixner wrote:
> These loops evaluating xfeature bits are really hard to read. Create an
> iterator and use for_each_set_bit_from() inside which already does the right
> thing.

<--- No functional changes.

>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
> arch/x86/kernel/fpu/xstate.c | 56 +++++++++++++++++--------------------------
> 1 file changed, 23 insertions(+), 33 deletions(-)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette