x86/fpu: Move context switch and exit to user inlines into sched.h
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:16:20 +0000 (03:16 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:27 +0000 (15:27 +0200)
commit63e81807c1f94e91b9d71c536112a40cd74bab85
tree3c8a467bdd99fcf8d04ceb2bc97bf1e3b18b3954
parent9603445549dacd7688532a4076c377e43a3ecfce
x86/fpu: Move context switch and exit to user inlines into sched.h

internal.h is a kitchen sink which needs to get out of the way to prepare
for the upcoming changes.

Move the context switch and exit to user inlines into a separate header,
which is all that code needs.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011539.349132461@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/include/asm/fpu/sched.h [new file with mode: 0644]
arch/x86/kernel/fpu/core.c
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c