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/intel/ia32/ml/i86_subr.s
          +++ new/usr/src/uts/intel/ia32/ml/i86_subr.s
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  25   25   * Copyright (c) 2014 by Delphix. All rights reserved.
       26 + * Copyright 2016 Joyent, Inc.
  26   27   */
  27   28  
  28   29  /*
  29   30   *  Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.
  30   31   *  Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
  31   32   *    All Rights Reserved
  32   33   */
  33   34  
  34   35  /*
  35   36   * Copyright (c) 2009, Intel Corporation.
↓ open down ↓ 3547 lines elided ↑ open up ↑
3583 3584  #endif  /* __i386 */
3584 3585  #endif  /* __lint */
3585 3586  
3586 3587  #if defined(__lint)
3587 3588  
3588 3589  void
3589 3590  hres_tick(void)
3590 3591  {}
3591 3592  
3592 3593  int64_t timedelta;
3593      -hrtime_t hres_last_tick;
3594      -volatile timestruc_t hrestime;
3595      -int64_t hrestime_adj;
3596      -volatile int hres_lock;
3597 3594  hrtime_t hrtime_base;
3598 3595  
3599 3596  #else   /* __lint */
3600 3597  
3601      -        DGDEF3(hrestime, _MUL(2, CLONGSIZE), 8)
3602      -        .NWORD  0, 0
3603      -
3604      -        DGDEF3(hrestime_adj, 8, 8)
3605      -        .long   0, 0
3606      -
3607      -        DGDEF3(hres_last_tick, 8, 8)
3608      -        .long   0, 0
3609      -
3610 3598          DGDEF3(timedelta, 8, 8)
3611 3599          .long   0, 0
3612 3600  
3613      -        DGDEF3(hres_lock, 4, 8)
3614      -        .long   0
3615      -
3616 3601          /*
3617 3602           * initialized to a non zero value to make pc_gethrtime()
3618 3603           * work correctly even before clock is initialized
3619 3604           */
3620 3605          DGDEF3(hrtime_base, 8, 8)
3621 3606          .long   _MUL(NSEC_PER_CLOCK_TICK, 6), 0
3622 3607  
3623 3608          DGDEF3(adj_shift, 4, 4)
3624 3609          .long   ADJ_SHIFT
3625 3610  
↓ open down ↓ 805 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX