summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-08-01 02:15:17 +0000
committerriastradh <riastradh@NetBSD.org>2020-08-01 02:15:17 +0000
commit6d5c64173c41e0c080f6b28f8ca2efbbde4eac86 (patch)
tree135db71f3279b9e02d4179c4455ddc608f2ced85
parent08d3626505edce82451560b41559a0eeb375858b (diff)
Run cgd(4) crypto threads with the FPU/SIMD units pre-enabled.
Improves cgd throughput on systems with vectorized crypto by ~20%.
-rw-r--r--sys/dev/cgd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cgd.c b/sys/dev/cgd.c
index cc1c400d1b9..b187af64482 100644
--- a/sys/dev/cgd.c
+++ b/sys/dev/cgd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.137 2020/06/29 23:36:06 riastradh Exp $ */
+/* $NetBSD: cgd.c,v 1.138 2020/08/01 02:15:17 riastradh Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.137 2020/06/29 23:36:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.138 2020/08/01 02:15:17 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -673,7 +673,7 @@ cgd_create_worker(void)
cp = kmem_alloc(sizeof(struct pool), KM_SLEEP);
error = workqueue_create(&wq, "cgd", cgd_process, NULL,
- PRI_BIO, IPL_BIO, WQ_MPSAFE | WQ_PERCPU);
+ PRI_BIO, IPL_BIO, WQ_FPU|WQ_MPSAFE|WQ_PERCPU);
if (error) {
kmem_free(cp, sizeof(struct pool));
kmem_free(cw, sizeof(struct cgd_worker));