Lines Matching full:fpu
6 * General FPU state handling cleanups
15 #include <asm/fpu/types.h>
18 * Use kernel_fpu_begin/end() if you intend to use FPU in kernel context. It
21 * If you intend to use the FPU in irq/softirq you need to check first with
25 /* Kernel FPU states to initialize in kernel_fpu_begin_mask() */
53 * Use fpregs_lock() while editing CPU's FPU registers or fpu->fpstate.
54 * A context switch will (and softirq might) save CPU's FPU registers to
55 * fpu->fpstate.regs and set TIF_NEED_FPU_LOAD leaving CPU's FPU registers in
86 * FPU state gets lazily restored before returning to userspace. So when in the
87 * kernel, the valid FPU state may be kept in the buffer. This function will force
88 * restore all the fpu state to the registers early if needed, and lock them from
89 * being automatically saved/restored. Then FPU state can be modified safely in the
101 * Load the task FPU state before returning to userspace.
115 extern int fpu__exception_code(struct fpu *fpu, int trap_nr);
116 extern void fpu_sync_fpstate(struct fpu *fpu);
132 DECLARE_PER_CPU(struct fpu *, fpu_fpregs_owner_ctx);
136 extern void fpstate_free(struct fpu *fpu);
138 static inline void fpstate_free(struct fpu *fpu) { } in fpstate_free() argument