summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v/sys
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4v/sys')
-rw-r--r--usr/src/uts/sun4v/sys/machparam.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/uts/sun4v/sys/machparam.h b/usr/src/uts/sun4v/sys/machparam.h
index 4fe46b985b..b47b33c370 100644
--- a/usr/src/uts/sun4v/sys/machparam.h
+++ b/usr/src/uts/sun4v/sys/machparam.h
@@ -63,6 +63,9 @@ extern "C" {
#error "Must define NCPU_LOG2 together with NCPU"
#endif
+/* NCPU_P2 is NCPU rounded to a power of 2 */
+#define NCPU_P2 (1 << NCPU_LOG2)
+
/*
* Maximum number of processors that we support. With CMP processors, the
* portid may not be equal to cpuid. MAX_CPU_CHIPID can be defined in a