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

Borislav Petkov
2021-10-12T16:46:03Z

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@linutronix.de>
> ---
> arch/x86/kernel/fpu/xstate.c | 56 +++++++++++++++++--------------------------
> 1 file changed, 23 insertions(+), 33 deletions(-)

--
Regards/Gruss,
Boris.