mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/4] x86/fpu: a few code cleanup
@ 2023-06-21 12:09 Chang S. Bae
  2023-06-21 12:09 ` [PATCH v1 1/4] x86/fpu/xstate: Convert get_xsave_addr() to a static function Chang S. Bae
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chang S. Bae @ 2023-06-21 12:09 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: tglx, mingo, bp, dave.hansen, hpa, andrew.cooper3, chang.seok.bae

Hi all,

This series intends to clean up the x86 FPU code. They do *not* deal
with any urgent issues but considerably apparent cleanups:

- Simplify xstate_calculate_size() and print_xstate_features() as both
  have some inefficient duplications.
- Convert get_xsave_addr() to a local function because it is not
  invoked anywhere else.
- Clean up the unnecessary fpstate_reset() since the invocation makes
  no change in the fpstate container.

The last one might have an unknown reason behind it. Then, I will
revise it with the clarification instead of removing the code.

The series can be found in this repo:
	git://github.com/intel/amx-linux.git x86-fpu-cleanup

Thanks,
Chang

Chang S. Bae (4):
  x86/fpu/xstate: Convert get_xsave_addr() to a static function
  x86/fpu/xstate: Simplify xstate_calculate_size()
  x86/fpu/xstate: Simplify print_xstate_features()
  x86/fpu: Remove the unnecessary fpstate_reset() invocation

 arch/x86/kernel/fpu/init.c   |  1 -
 arch/x86/kernel/fpu/xstate.c | 36 +++++++++++-------------------------
 arch/x86/kernel/fpu/xstate.h |  2 --
 3 files changed, 11 insertions(+), 28 deletions(-)


base-commit: 162d2c2297b731a9918bd26db5a9f779de259c09
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-21 12:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 12:09 [PATCH v1 0/4] x86/fpu: a few code cleanup Chang S. Bae
2023-06-21 12:09 ` [PATCH v1 1/4] x86/fpu/xstate: Convert get_xsave_addr() to a static function Chang S. Bae
2023-06-21 12:09 ` [PATCH v1 2/4] x86/fpu/xstate: Simplify xstate_calculate_size() Chang S. Bae
2023-06-21 12:09 ` [PATCH v1 3/4] x86/fpu/xstate: Simplify print_xstate_features() Chang S. Bae
2023-06-21 12:09 ` [PATCH v1 4/4] x86/fpu: Remove the unnecessary fpstate_reset() invocation Chang S. Bae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®