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>

@@ -21,10 +21,11 @@
 
 /*
  * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  * Copyright (c) 2014 by Delphix. All rights reserved.
+ * Copyright 2016 Joyent, Inc.
  */
 
 /*
  *  Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.
  *  Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T

@@ -3588,33 +3589,17 @@
 void
 hres_tick(void)
 {}
 
 int64_t timedelta;
-hrtime_t hres_last_tick;
-volatile timestruc_t hrestime;
-int64_t hrestime_adj;
-volatile int hres_lock;
 hrtime_t hrtime_base;
 
 #else   /* __lint */
 
-        DGDEF3(hrestime, _MUL(2, CLONGSIZE), 8)
-        .NWORD  0, 0
-
-        DGDEF3(hrestime_adj, 8, 8)
-        .long   0, 0
-
-        DGDEF3(hres_last_tick, 8, 8)
-        .long   0, 0
-
         DGDEF3(timedelta, 8, 8)
         .long   0, 0
 
-        DGDEF3(hres_lock, 4, 8)
-        .long   0
-
         /*
          * initialized to a non zero value to make pc_gethrtime()
          * work correctly even before clock is initialized
          */
         DGDEF3(hrtime_base, 8, 8)