From 5249a0ab2da87da386cd5f528286087ee785d068 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 16 Aug 2008 07:37:14 +0000 Subject: [PATCH] remove unnecessary splvm() calls around simple pool_get/put, obsoleted by pool internal locks since vmlocking merged. --- sys/dev/rnd.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 9aca869c2fe8..5e649d4911bf 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $NetBSD: rnd.c,v 1.66 2008/04/28 20:23:47 martin Exp $ */ +/* $NetBSD: rnd.c,v 1.67 2008/08/16 07:37:14 dan Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.66 2008/04/28 20:23:47 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rnd.c,v 1.67 2008/08/16 07:37:14 dan Exp $"); #include #include @@ -759,11 +759,8 @@ static rnd_sample_t * rnd_sample_allocate(rndsource_t *source) { rnd_sample_t *c; - int s; - s = splvm(); c = pool_get(&rnd_mempool, PR_WAITOK); - splx(s); if (c == NULL) return (NULL); @@ -781,11 +778,8 @@ static rnd_sample_t * rnd_sample_allocate_isr(rndsource_t *source) { rnd_sample_t *c; - int s; - s = splvm(); c = pool_get(&rnd_mempool, 0); - splx(s); if (c == NULL) return (NULL); @@ -799,12 +793,8 @@ rnd_sample_allocate_isr(rndsource_t *source) static void rnd_sample_free(rnd_sample_t *c) { - int s; - memset(c, 0, sizeof(rnd_sample_t)); - s = splvm(); pool_put(&rnd_mempool, c); - splx(s); } /*