Messages in this thread | | | Date | Mon, 16 Aug 2021 20:53:21 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH v9 08/26] x86/fpu/xstate: Introduce helpers to manage the XSTATE buffer dynamically |
| |
On Mon, Aug 16, 2021 at 06:33:37PM +0000, Bae, Chang Seok wrote: > Without DISABLE_XSAVES or something under ifdef CONFIG_X86_XX in > $arch/x86/include/asm/disable-features.h, I don’t see the difference with this > macro. Am I missing anything here? Or, boot_cpu_has() is going to be > deprecated everywhere?
There's:
cpu_has this_cpu_has cpu_feature_enabled boot_cpu_has static_cpu_has
All code where it doesn't matter which CPU, should use cpu_feature_enabled() and simplicity will ensue in these here lands.
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| |