diff options
Diffstat (limited to 'src/compat/simd/include/linux/simd.h')
-rw-r--r-- | src/compat/simd/include/linux/simd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compat/simd/include/linux/simd.h b/src/compat/simd/include/linux/simd.h index 863a665..8fd077b 100644 --- a/src/compat/simd/include/linux/simd.h +++ b/src/compat/simd/include/linux/simd.h @@ -49,14 +49,16 @@ static inline void simd_put(simd_context_t *ctx) *ctx = HAVE_NO_SIMD; } -static inline void simd_relax(simd_context_t *ctx) +static inline bool simd_relax(simd_context_t *ctx) { #ifdef CONFIG_PREEMPT if ((*ctx & HAVE_SIMD_IN_USE) && need_resched()) { simd_put(ctx); simd_get(ctx); + return true; } #endif + return false; } static __must_check inline bool simd_use(simd_context_t *ctx) |