diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-06-18 02:57:38 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-06-18 02:57:38 +0000 |
| commit | 40ebf3e43a04f135fee386d8d766fc35055fcb82 (patch) | |
| tree | d86cf16353f3d8e0361533d5f22b7ae288925f52 | |
| parent | 95343ec2e80941e0ba0f7fb0a50fba66a273f6d1 (diff) | |
Notes
| -rw-r--r-- | sys/alpha/alpha/pmap.c | 2 | ||||
| -rw-r--r-- | sys/amd64/amd64/pmap.c | 2 | ||||
| -rw-r--r-- | sys/ia64/ia64/pmap.c | 2 | ||||
| -rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/alpha/pmap.c b/sys/alpha/alpha/pmap.c index 55d46fba01a3..c14e42d16617 100644 --- a/sys/alpha/alpha/pmap.c +++ b/sys/alpha/alpha/pmap.c @@ -594,7 +594,7 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) } va = (void *)ALPHA_PHYS_TO_K0SEG(m->phys_addr); - if ((m->flags & PG_ZERO) == 0) + if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) bzero(va, PAGE_SIZE); return (va); } diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 8a3226b92129..93bd3acbeade 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -557,7 +557,7 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) } va = (void *)PHYS_TO_DMAP(m->phys_addr); - if ((m->flags & PG_ZERO) == 0) + if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) pagezero(va); return (va); } diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index 77effaa698ef..43405bdcfce1 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -539,7 +539,7 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) } va = (void *)IA64_PHYS_TO_RR7(VM_PAGE_TO_PHYS(m)); - if ((m->flags & PG_ZERO) == 0) + if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) bzero(va, PAGE_SIZE); return (va); } diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index 7f54e122e48b..5b4b9ab299e1 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -370,7 +370,7 @@ uma_small_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait) dcache_page_inval(pa); } va = (void *)TLB_PHYS_TO_DIRECT(pa); - if ((m->flags & PG_ZERO) == 0) + if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) bzero(va, PAGE_SIZE); return (va); } |
