diff options
author | Peter Rival <Frank.Rival@oracle.com> | 2010-04-23 13:26:05 -0400 |
---|---|---|
committer | Peter Rival <Frank.Rival@oracle.com> | 2010-04-23 13:26:05 -0400 |
commit | cb15d5d96b3b2730714c28bfe06cfe7421758b8c (patch) | |
tree | 7fd5c3cf5bb49647be8b2eb022e8d75a7d78eab5 /usr/src/uts/i86pc/sys/machparam.h | |
parent | 03c76a6ef5c04e818b6badeeb6155961505af45c (diff) | |
download | illumos-joyent-cb15d5d96b3b2730714c28bfe06cfe7421758b8c.tar.gz |
6778289 vm locks need to scale with the size of system (strands/memory size)
Diffstat (limited to 'usr/src/uts/i86pc/sys/machparam.h')
-rw-r--r-- | usr/src/uts/i86pc/sys/machparam.h | 3 |
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. |