diff options
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/simd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/simd.h b/src/crypto/simd.h index 21e3c55..07936bf 100644 --- a/src/crypto/simd.h +++ b/src/crypto/simd.h @@ -47,10 +47,12 @@ static inline void simd_put(bool was_on) static inline bool simd_relax(bool was_on) { +#ifdef CONFIG_PREEMPT if (was_on && need_resched()) { simd_put(true); return simd_get(); } +#endif return was_on; } |