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/mips64 | |
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/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/pmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c index 38553ea56f6..598f57f33cd 100644 --- a/sys/arch/mips64/mips64/pmap.c +++ b/sys/arch/mips64/mips64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.33 2008/04/07 22:30:48 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.34 2008/06/14 10:55:20 mk Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -278,9 +278,8 @@ extern struct user *proc0paddr; DPRINTF(PDB_FOLLOW|PDB_CREATE, ("pmap_create()\n")); s = splvm(); - pmap = pool_get(&pmap_pmap_pool, PR_WAITOK); + pmap = pool_get(&pmap_pmap_pool, PR_WAITOK | PR_ZERO); splx(s); - bzero(pmap, sizeof(*pmap)); simple_lock_init(&pmap->pm_lock); pmap->pm_count = 1; |