diff options
author | des <des@FreeBSD.org> | 2001-01-21 22:23:11 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-01-21 22:23:11 +0000 |
commit | b3c27aaaf71f80f39e0bc2196f9a32b99656179f (patch) | |
tree | b72f07724b85554241dfdc306867216a196d0604 /sys/amd64 | |
parent | c26d01c0b9838b42bdfb45af2319827fc2a5cd75 (diff) | |
download | FreeBSD-src-b3c27aaaf71f80f39e0bc2196f9a32b99656179f.zip FreeBSD-src-b3c27aaaf71f80f39e0bc2196f9a32b99656179f.tar.gz |
First step towards an MP-safe zone allocator:
- have zalloc() and zfree() always lock the vm_zone.
- remove zalloci() and zfreei(), which are now redundant.
Reviewed by: bmilekic, jasone
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index e60b5fb..b41dfb0 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -1450,7 +1450,7 @@ free_pv_entry(pv) pv_entry_t pv; { pv_entry_count--; - zfreei(pvzone, pv); + zfree(pvzone, pv); } /* @@ -1469,7 +1469,7 @@ get_pv_entry(void) pmap_pagedaemon_waken = 1; wakeup (&vm_pages_needed); } - return zalloci(pvzone); + return zalloc(pvzone); } /* |