Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use kmem_intr_alloc/kmem_intr_free
details: https://anonhg.NetBSD.org/src/rev/bae6e6ec8985
branches: trunk
changeset: 782313:bae6e6ec8985
user: matt <matt%NetBSD.org@localhost>
date: Sat Oct 27 17:34:07 2012 +0000
description:
Use kmem_intr_alloc/kmem_intr_free
diffstat:
sys/kern/subr_cprng.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 765d2f82e834 -r bae6e6ec8985 sys/kern/subr_cprng.c
--- a/sys/kern/subr_cprng.c Sat Oct 27 17:29:03 2012 +0000
+++ b/sys/kern/subr_cprng.c Sat Oct 27 17:34:07 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $ */
+/* $NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
#include <sys/cprng.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.12 2012/09/08 02:58:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.13 2012/10/27 17:34:07 matt Exp $");
void
cprng_init(void)
@@ -286,7 +286,7 @@
*/
if (__predict_false(c->drbg.reseed_counter == 1) &&
(flags & FASYNC) == 0) {
- rngtest_t *rt = kmem_alloc(sizeof(*rt), KM_NOSLEEP);
+ rngtest_t *rt = kmem_intr_alloc(sizeof(*rt), KM_NOSLEEP);
if (rt) {
@@ -308,7 +308,7 @@
len = 0;
}
memset(rt, 0, sizeof(*rt));
- kmem_free(rt, sizeof(*rt));
+ kmem_intr_free(rt, sizeof(*rt));
}
}
#endif
Home |
Main Index |
Thread Index |
Old Index