summaryrefslogtreecommitdiff
path: root/usr/src/uts/i86pc/sys/machparam.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/i86pc/sys/machparam.h')
-rw-r--r--usr/src/uts/i86pc/sys/machparam.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/sys/machparam.h b/usr/src/uts/i86pc/sys/machparam.h
index ed3c5d5fcc..a0fa08db16 100644
--- a/usr/src/uts/i86pc/sys/machparam.h
+++ b/usr/src/uts/i86pc/sys/machparam.h
@@ -60,6 +60,9 @@ extern "C" {
#define NCPU_LOG2 5
#endif
+/* NCPU_P2 is NCPU rounded to a power of 2 */
+#define NCPU_P2 (1 << NCPU_LOG2)
+
/*
* The value defined below could grow to 16. hat structure and
* page_t have room for 16 nodes.