Commit bb5ec819 authored by Gilles Chanteperdrix's avatar Gilles Chanteperdrix Committed by Philippe Gerum
Browse files

x86/ipipe: add accessor to in_kernel_fpu

parent b12f79d0
......@@ -54,6 +54,7 @@ static inline void kernel_fpu_end(void)
/* Must be called with preempt disabled */
extern void kernel_fpu_disable(void);
extern void kernel_fpu_enable(void);
extern bool kernel_fpu_disabled(void);
* Some instructions like VIA's padlock instructions generate a spurious
......@@ -33,6 +33,11 @@ void kernel_fpu_enable(void)
this_cpu_write(in_kernel_fpu, false);
bool kernel_fpu_disabled(void)
return this_cpu_read(in_kernel_fpu);
* Were we in an interrupt that interrupted kernel mode?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment