diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2017-09-20 17:53:25 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2017-09-20 17:53:25 +0000 |
commit | 81326306dd741ed8e1935e5d942ff60178d8ca0e (patch) | |
tree | 41770c7c39272eab155c70f47a59e6bece2794f0 /sys/crypto/aesni | |
parent | cd037f075c3e6ca7c48fd2ff7bf7311760044554 (diff) | |
download | src-test-81326306dd741ed8e1935e5d942ff60178d8ca0e.tar.gz src-test-81326306dd741ed8e1935e5d942ff60178d8ca0e.zip |
Notes
Diffstat (limited to 'sys/crypto/aesni')
-rw-r--r-- | sys/crypto/aesni/aesni.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c index bfea2f0ab1bca..291bd33b6a7c0 100644 --- a/sys/crypto/aesni/aesni.c +++ b/sys/crypto/aesni/aesni.c @@ -61,7 +61,7 @@ struct aesni_softc { struct rwlock lock; }; -#define AQUIRE_CTX(i, ctx) \ +#define ACQUIRE_CTX(i, ctx) \ do { \ (i) = PCPU_GET(cpuid); \ mtx_lock(&ctx_mtx[(i)]); \ @@ -490,7 +490,7 @@ aesni_cipher_setup(struct aesni_session *ses, struct cryptoini *encini) kt = is_fpu_kern_thread(0); if (!kt) { - AQUIRE_CTX(ctxidx, ctx); + ACQUIRE_CTX(ctxidx, ctx); error = fpu_kern_enter(curthread, ctx, FPU_KERN_NORMAL | FPU_KERN_KTHR); if (error != 0) @@ -547,7 +547,7 @@ aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd, kt = is_fpu_kern_thread(0); if (!kt) { - AQUIRE_CTX(ctxidx, ctx); + ACQUIRE_CTX(ctxidx, ctx); error = fpu_kern_enter(curthread, ctx, FPU_KERN_NORMAL|FPU_KERN_KTHR); if (error != 0) |