Skip to content

x86, fpu: kernel_fpu_begin/end fixes/cleanups

Oleg Nesterov lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v10 of 4 patches 0 repliesSuperseded

Changes in v2 from the cover letter

	1-3: No changes except the minor updates in the changelogs
	     and comments

	4-5: New. 5/5 is purely cosmetic.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86, fpu: introduce per-cpu "bool in_kernel_fpu"arch/x86/include/asm/i387.h arch/x86/kernel/i387.c+11 -10 replies
2/5x86, fpu: don't abuse ->has_fpu in __kernel_fpu_{begin,end}()arch/x86/kernel/i387.c+6 -130 replies
3/5x86, fpu: irq_fpu_usable: always return true if use_eager_fpu()arch/x86/kernel/i387.c+3 -30 replies
4/5x86, fpu: fix math_state_restore() race with kernel_fpu_begin()arch/x86/include/asm/i387.h arch/x86/kernel/i387.c arch/x86/kernel/traps.c+20 -80 replies
5/5x86, fpu: introduce try_to_restore_fpu()arch/x86/include/asm/fpu-internal.h arch/x86/kernel/i387.c arch/x86/kernel/traps.c+17 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] x86, fpu: kernel_fpu_begin/end fixes/cleanups

Hello,

Suresh, please review when you have time. FYI, I will be travelling till Sep 10 and I won't be able to reply.

Not for inclusion yet, just for review.

v2:

	1-3: No changes except the minor updates in the changelogs
	     and comments

	4-5: New. 5/5 is purely cosmetic.

Oleg.

 arch/x86/include/asm/fpu-internal.h |   15 ++++++++---
 arch/x86/include/asm/i387.h         |    6 ++++-
 arch/x86/kernel/i387.c              |   45 +++++++++++++++++++++-------------
 arch/x86/kernel/traps.c             |   16 ++++-------
 4 files changed, 50 insertions(+), 32 deletions(-)