Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Run cgd(4) crypto threads with the FPU/SIMD units pr...



details:   https://anonhg.NetBSD.org/src/rev/c7543777e6f9
branches:  trunk
changeset: 936630:c7543777e6f9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Aug 01 02:15:17 2020 +0000

description:
Run cgd(4) crypto threads with the FPU/SIMD units pre-enabled.

Improves cgd throughput on systems with vectorized crypto by ~20%.

diffstat:

 sys/dev/cgd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 403d8d7f2107 -r c7543777e6f9 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Sat Aug 01 02:14:43 2020 +0000
+++ b/sys/dev/cgd.c     Sat Aug 01 02:15:17 2020 +0000
@@ -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 @@
        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));



Home | Main Index | Thread Index | Old Index