/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __X86_KERNEL_FPU_INTERNAL_H #define __X86_KERNEL_FPU_INTERNAL_H extern struct fpstate init_fpstate; /* CPU feature check wrappers */ static __always_inline __pure bool use_xsave(void) { … } static __always_inline __pure bool use_fxsr(void) { … } #ifdef CONFIG_X86_DEBUG_FPU #define WARN_ON_FPU(x) … #else #define WARN_ON_FPU … #endif /* Used in init.c */ extern void fpstate_init_user(struct fpstate *fpstate); extern void fpstate_reset(struct fpu *fpu); #endif