|
|
@@ -12,17 +12,12 @@
|
|
|
#define _ASM_X86_FPU_API_H
|
|
|
|
|
|
/*
|
|
|
- * Careful: __kernel_fpu_begin/end() must be called with preempt disabled
|
|
|
- * and they don't touch the preempt state on their own.
|
|
|
- * If you enable preemption after __kernel_fpu_begin(), preempt notifier
|
|
|
- * should call the __kernel_fpu_end() to prevent the kernel/user FPU
|
|
|
- * state from getting corrupted. KVM for example uses this model.
|
|
|
- *
|
|
|
- * All other cases use kernel_fpu_begin/end() which disable preemption
|
|
|
- * during kernel FPU usage.
|
|
|
+ * Use kernel_fpu_begin/end() if you intend to use FPU in kernel context. It
|
|
|
+ * disables preemption so be careful if you intend to use it for long periods
|
|
|
+ * of time.
|
|
|
+ * If you intend to use the FPU in softirq you need to check first with
|
|
|
+ * irq_fpu_usable() if it is possible.
|
|
|
*/
|
|
|
-extern void __kernel_fpu_begin(void);
|
|
|
-extern void __kernel_fpu_end(void);
|
|
|
extern void kernel_fpu_begin(void);
|
|
|
extern void kernel_fpu_end(void);
|
|
|
extern bool irq_fpu_usable(void);
|