diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-14 00:18:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-14 00:18:40 +0200 |
commit | faa6c83426891059b2648b2b799e64bbfaf39a51 (patch) | |
tree | 422970a80cd4c4f32464d40174e289c1f1da9b0e /src/crypto/chacha20poly1305.h | |
parent | 4acfeb2e8ea7081374299776b0f64dce2a2ec744 (diff) |
chacha20poly1305: use slow crypto on -rt kernels on arm too
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/chacha20poly1305.h')
-rw-r--r-- | src/crypto/chacha20poly1305.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/chacha20poly1305.h b/src/crypto/chacha20poly1305.h index f19bf52..1b122ac 100644 --- a/src/crypto/chacha20poly1305.h +++ b/src/crypto/chacha20poly1305.h @@ -60,7 +60,7 @@ static inline bool chacha20poly1305_init_simd(void) have_simd = irq_fpu_usable(); if (have_simd) kernel_fpu_begin(); -#elif IS_ENABLED(CONFIG_KERNEL_MODE_NEON) +#elif IS_ENABLED(CONFIG_KERNEL_MODE_NEON) && !defined(CONFIG_PREEMPT_RT_BASE) #if defined(CONFIG_ARM64) have_simd = true; /* ARM64 supports NEON in any context. */ #elif defined(CONFIG_ARM) |