From ace977b163a487262367b29bf0a11c9438cd3480 Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Sat, 14 Jun 2008 10:55:22 +0000 Subject: A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO) conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking. --- sys/arch/solbourne/solbourne/pmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/arch/solbourne') diff --git a/sys/arch/solbourne/solbourne/pmap.c b/sys/arch/solbourne/solbourne/pmap.c index f805831401e..09a70e96e3b 100644 --- a/sys/arch/solbourne/solbourne/pmap.c +++ b/sys/arch/solbourne/solbourne/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.1 2005/04/19 21:30:18 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.2 2008/06/14 10:55:20 mk Exp $ */ /* * Copyright (c) 2005, Miodrag Vallat * @@ -504,9 +504,8 @@ pmap_create() DPRINTF(PDB_CREATE, ("pmap_create()")); - pmap = pool_get(&pmappool, PR_WAITOK); + pmap = pool_get(&pmappool, PR_WAITOK | PR_ZERO); - bzero(pmap, sizeof(*pmap)); pmap->pm_refcount = 1; simple_lock_init(&pmap->pm_lock); -- cgit v1.2.3