Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto make the crypto softint MPSAFE -- I see no re...



details:   https://anonhg.NetBSD.org/src/rev/8874d14569de
branches:  trunk
changeset: 762644:8874d14569de
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Feb 24 19:35:46 2011 +0000

description:
make the crypto softint MPSAFE -- I see no reason not to do it, and
it didn't cause trouble for me. (It doesn't give additional parallelization
as things look now, just saves the acquisition of KERNEL_LOCK.)

diffstat:

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

diffs (27 lines):

diff -r 906395e1e4a8 -r 8874d14569de sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Thu Feb 24 19:32:34 2011 +0000
+++ b/sys/opencrypto/crypto.c   Thu Feb 24 19:35:46 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto.c,v 1.37 2011/01/26 19:52:16 christos Exp $ */
+/*     $NetBSD: crypto.c,v 1.38 2011/02/24 19:35:46 drochner Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $   */
 /*     $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
 
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.37 2011/01/26 19:52:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.38 2011/02/24 19:35:46 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/reboot.h>
@@ -76,7 +76,7 @@
 /* below are kludges for residual code wrtitten to FreeBSD interfaces */
   #define SWI_CRYPTO 17
   #define register_swi(lvl, fn)  \
-  softint_establish(SOFTINT_NET, (void (*)(void *))fn, NULL)
+  softint_establish(SOFTINT_NET|SOFTINT_MPSAFE, (void (*)(void *))fn, NULL)
   #define unregister_swi(lvl, fn)  softint_disestablish(softintr_cookie)
   #define setsoftcrypto(x) softint_schedule(x)
 



Home | Main Index | Thread Index | Old Index