summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4/os/memnode.c
diff options
context:
space:
mode:
authorkchow <none@none>2005-08-24 15:17:32 -0700
committerkchow <none@none>2005-08-24 15:17:32 -0700
commitaffbd3ccca8e26191a210ec9f9ffae170f919afd (patch)
tree7c0b6f58653b11f5821f876998bd00b9627f1907 /usr/src/uts/sun4/os/memnode.c
parentb5cda42e4451eb63c27c9fb170e50e628aa89257 (diff)
downloadillumos-joyent-affbd3ccca8e26191a210ec9f9ffae170f919afd.tar.gz
6286816 page_numtopp_nolock is inefficent
6288107 Missing comment terminator in i86pc/ml/locore.s 6290613 high page_get_cachelist failure rate on jurassic 6297005 performance issues with page_nextn()
Diffstat (limited to 'usr/src/uts/sun4/os/memnode.c')
-rw-r--r--usr/src/uts/sun4/os/memnode.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/sun4/os/memnode.c b/usr/src/uts/sun4/os/memnode.c
index c00966c1c3..849bec22c8 100644
--- a/usr/src/uts/sun4/os/memnode.c
+++ b/usr/src/uts/sun4/os/memnode.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,6 +32,7 @@
#include <sys/atomic.h>
#include <sys/memlist.h>
#include <sys/memnode.h>
+#include <vm/vm_dep.h>
int max_mem_nodes = 1; /* max memory nodes on this system */
@@ -99,7 +100,6 @@ mem_node_add_slice(pfn_t start, pfn_t end)
} else {
mem_node_config[mnode].physbase = start;
mem_node_config[mnode].physmax = end;
- mem_node_config[mnode].cursize = 0;
atomic_add_16(&num_memnodes, 1);
do {
oldmask = memnodes_mask;
@@ -171,7 +171,7 @@ mem_node_post_del_slice(pfn_t start, pfn_t end, int cancelled)
/*
* Delete the whole node.
*/
- ASSERT(mem_node_config[mnode].cursize == 0);
+ ASSERT(MNODE_PGCNT(mnode) == 0);
do {
omask = memnodes_mask;
nmask = omask & ~(1ull << mnode);
@@ -234,7 +234,6 @@ mem_node_alloc()
mem_node_config[mnode].physbase = (uint64_t)-1;
mem_node_config[mnode].physmax = 0;
- mem_node_config[mnode].cursize = 0;
atomic_add_16(&num_memnodes, 1);
do {
oldmask = memnodes_mask;