x86/fpu/xstate: Simplify print_xstate_features()
authorChang S. Bae <chang.seok.bae@intel.com>
Thu, 27 Feb 2025 18:44:46 +0000 (10:44 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Feb 2025 18:54:41 +0000 (19:54 +0100)
commit69a2fdf446049ae31be4a14a0cf16f2f18f09b6c
tree2aa2f0999d96b49964de7fe8cf9a57157841c7a6
parentdc8aa31a7ac2c4290ea974c13cb0094e08f8948f
x86/fpu/xstate: Simplify print_xstate_features()

print_xstate_features() currently invokes print_xstate_feature() multiple
times on separate lines, which can be simplified in a loop.

print_xstate_feature() already checks the feature's enabled status and is
only called within print_xstate_features(). Inline print_xstate_feature()
and iterate over features in a loop to streamline the enabling message.

No functional changes.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20250227184502.10288-2-chang.seok.bae@intel.com
arch/x86/kernel/fpu/xstate.c