]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kernel/cpu/common.c
x86/fpu: Handle FPU-related and clearcpuid command line arguments earlier
authorMike Hommey <mh@glandium.org>
Mon, 21 Sep 2020 21:56:38 +0000 (06:56 +0900)
committerBorislav Petkov <bp@suse.de>
Mon, 21 Sep 2020 22:24:27 +0000 (00:24 +0200)
commit1ef5423a55c2ac6f1361811efe75b6e46d1023ed
tree4c1ed8f0a850b2e01c9f7760d797196198c68f04
parent0a4bb5e5507a585532cc413125b921c8546fc39f
x86/fpu: Handle FPU-related and clearcpuid command line arguments earlier

FPU initialization handles them currently. However, in the case
of clearcpuid=, some other early initialization code may check for
features before the FPU initialization code is called. Handling the
argument earlier allows the command line to influence those early
initializations.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200921215638.37980-1-mh@glandium.org
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c