diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
commit | ace977b163a487262367b29bf0a11c9438cd3480 (patch) | |
tree | a9aacbf84fd80fdaa00d85a1f4cf5d4d21c7ae8d /sys/arch/solbourne | |
parent | 4ef5afc9653e726120eef49602859549321429b8 (diff) |
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.
Diffstat (limited to 'sys/arch/solbourne')
-rw-r--r-- | sys/arch/solbourne/solbourne/pmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |