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/common/vm/seg_kmem.h
          +++ new/usr/src/uts/common/vm/seg_kmem.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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2016 Joyent, Inc.
  24   25   */
  25   26  
  26   27  #ifndef _VM_SEG_KMEM_H
  27   28  #define _VM_SEG_KMEM_H
  28   29  
  29   30  
  30   31  #ifdef  __cplusplus
  31   32  extern "C" {
  32   33  #endif
  33   34  
↓ open down ↓ 95 lines elided ↑ open up ↑
 129  130  extern size_t   segkmem_lpsize;
 130  131  extern int      segkmem_lpszc;
 131  132  extern size_t   segkmem_heaplp_quantum;
 132  133  extern size_t   segkmem_kmemlp_max;
 133  134  
 134  135  #define SEGKMEM_USE_LARGEPAGES (segkmem_lpsize > PAGESIZE)
 135  136  
 136  137  #define IS_KMEM_VA_LARGEPAGE(vaddr)                                     \
 137  138          (((vaddr) >= heap_lp_base) && ((vaddr) < heap_lp_end))
 138  139  
      140 +extern struct seg_ops segkmem_ops;
      141 +
 139  142  #endif  /* _KERNEL */
 140  143  
 141  144  #ifdef  __cplusplus
 142  145  }
 143  146  #endif
 144  147  
 145  148  #endif  /* _VM_SEG_KMEM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX