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.c
          +++ new/usr/src/uts/common/vm/seg_kmem.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2016 Joyent, Inc.
  23   24   */
  24   25  
  25   26  #include <sys/types.h>
  26   27  #include <sys/t_lock.h>
  27   28  #include <sys/param.h>
  28   29  #include <sys/sysmacros.h>
  29   30  #include <sys/tuneable.h>
  30   31  #include <sys/systm.h>
  31   32  #include <sys/vm.h>
  32   33  #include <sys/kmem.h>
↓ open down ↓ 733 lines elided ↑ open up ↑
 766  767  
 767  768  /*ARGSUSED*/
 768  769  static int
 769  770  segkmem_capable(struct seg *seg, segcapability_t capability)
 770  771  {
 771  772          if (capability == S_CAPABILITY_NOMINFLT)
 772  773                  return (1);
 773  774          return (0);
 774  775  }
 775  776  
 776      -static struct seg_ops segkmem_ops = {
      777 +struct seg_ops segkmem_ops = {
 777  778          SEGKMEM_BADOP(int),             /* dup */
 778  779          SEGKMEM_BADOP(int),             /* unmap */
 779  780          SEGKMEM_BADOP(void),            /* free */
 780  781          segkmem_fault,
 781  782          SEGKMEM_BADOP(faultcode_t),     /* faulta */
 782  783          segkmem_setprot,
 783  784          segkmem_checkprot,
 784  785          segkmem_kluster,
 785  786          SEGKMEM_BADOP(size_t),          /* swapout */
 786  787          SEGKMEM_BADOP(int),             /* sync */
↓ open down ↓ 858 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX