Module Name: src
Committed By: drochner
Date: Thu Feb 24 19:35:46 UTC 2011
Modified Files:
src/sys/opencrypto: crypto.c
Log Message:
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.)
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/opencrypto/crypto.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/opencrypto/crypto.c
diff -u src/sys/opencrypto/crypto.c:1.37 src/sys/opencrypto/crypto.c:1.38
--- src/sys/opencrypto/crypto.c:1.37 Wed Jan 26 19:52:16 2011
+++ src/sys/opencrypto/crypto.c Thu Feb 24 19:35:46 2011
@@ -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)