x86/fpu: Remove PKRU handling from switch_fpu_finish()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:02:21 +0000 (14:02 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 17:54:49 +0000 (19:54 +0200)
commit954436989cc550dd91aab98363240c9c0a4b7e23
tree4c53ac4a38eeffa9c0e098fea14863c21bbcb771
parent30a304a138738d71a09c730ca8044e9662de0dbf
x86/fpu: Remove PKRU handling from switch_fpu_finish()

PKRU is already updated and the xstate is not longer the proper source
of information.

 [ bp: Use cpu_feature_enabled() ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121456.708180184@linutronix.de
arch/x86/include/asm/fpu/internal.h