From 6d5c64173c41e0c080f6b28f8ca2efbbde4eac86 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sat, 1 Aug 2020 02:15:17 +0000 Subject: Run cgd(4) crypto threads with the FPU/SIMD units pre-enabled. Improves cgd throughput on systems with vectorized crypto by ~20%. --- sys/dev/cgd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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 #include @@ -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)); -- cgit