Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src-all/rev/bc49e686c8ba
branches:  trunk
changeset: 936597:bc49e686c8ba
user:      Taylor R Campbell <riastradh%NetBSD.org@localhost>
date:      Fri Jul 31 18:29:01 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 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r eb50202b0d36 -r bc49e686c8ba sys/dev/cgd.c
--- a/sys/dev/cgd.c     Fri Jul 31 18:18:17 2020 +0000
+++ b/sys/dev/cgd.c     Fri Jul 31 18:29:01 2020 +0000
@@ -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