summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-21 01:29:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-21 01:29:42 +0000
commit542b01f8aa90e58a87f404c0b68b785da31ad839 (patch)
tree026d6de2d86a70d6786b5542e54723f4f8a89d20 /sys/kern/kern_malloc.c
parenta3798bbf3375fa85ac8756a4ac26efa2d656c87b (diff)
use PAGE_SHIFT instead of PGSHIFT
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 542fa76e28d..a18e0a668ef 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.95 2013/03/15 19:10:43 tedu Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.96 2013/03/21 01:29:41 deraadt Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -458,7 +458,7 @@ free(void *addr, int type)
if (size > MAXALLOCSAVE) {
uvm_km_free(kmem_map, (vaddr_t)addr, ptoa(kup->ku_pagecnt));
#ifdef KMEMSTATS
- size = kup->ku_pagecnt << PGSHIFT;
+ size = kup->ku_pagecnt << PAGE_SHIFT;
ksp->ks_memuse -= size;
kup->ku_indx = 0;
kup->ku_pagecnt = 0;