Print this page
OS-5192 need faster clock_gettime
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Ryan Zezeski <ryan@zinascii.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/machparam.h
          +++ new/usr/src/uts/i86pc/sys/machparam.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 2015 by Delphix. All rights reserved.
       24 + * Copyright 2016 Joyent, Inc.
  24   25   */
  25   26  
  26   27  /*      Copyright (c) 1988 AT&T */
  27   28  /*        All Rights Reserved   */
  28   29  
  29   30  
  30   31  #ifndef _SYS_MACHPARAM_H
  31   32  #define _SYS_MACHPARAM_H
  32   33  
  33   34  #if !defined(_ASM)
↓ open down ↓ 13 lines elided ↑ open up ↑
  47   48  #define ADDRESS_C(c)    c ## ul
  48   49  #else   /* _ASM */
  49   50  #define ADDRESS_C(c)    (c)
  50   51  #endif  /* _ASM */
  51   52  
  52   53  /*
  53   54   * Machine dependent parameters and limits.
  54   55   */
  55   56  
  56   57  #if defined(__amd64)
       58 +/*
       59 + * If NCPU grows beyond 256, sizing for the x86 comm page will require
       60 + * adjustment.
       61 + */
  57   62  #define NCPU    256
  58   63  #define NCPU_LOG2       8
  59   64  #elif defined(__i386)
  60   65  #define NCPU    32
  61   66  #define NCPU_LOG2       5
  62   67  #endif
  63   68  
  64   69  /* NCPU_P2 is NCPU rounded to a power of 2 */
  65   70  #define NCPU_P2 (1 << NCPU_LOG2)
  66   71  
↓ open down ↓ 287 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX