]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/fpu: Parse clearcpuid= as early XSAVE argument
authorAndi Kleen <ak@linux.intel.com>
Fri, 13 Oct 2017 21:56:43 +0000 (14:56 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Oct 2017 15:14:57 +0000 (17:14 +0200)
commit0c2a3913d6f50503f7c59d83a6219e39508cc898
treeccc90d5b5de1476f37c4a76c8adb21b535e38fd8
parent0b00de857a648dafe7020878c7a27cf776f5edf4
x86/fpu: Parse clearcpuid= as early XSAVE argument

With a followon patch we want to make clearcpuid affect the XSAVE
configuration. But xsave is currently initialized before arguments
are parsed. Move the clearcpuid= parsing into the special
early xsave argument parsing code.

Since clearcpuid= contains a = we need to keep the old __setup
around as a dummy, otherwise it would end up as a environment
variable in init's environment.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171013215645.23166-4-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c