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>
*** 19,35 ****
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_MACHLOCK_H
#define _SYS_MACHLOCK_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#ifndef _ASM
#include <sys/types.h>
#include <sys/time.h>
#endif /* _ASM */
--- 19,34 ----
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2016 Joyent, Inc.
*/
#ifndef _SYS_MACHLOCK_H
#define _SYS_MACHLOCK_H
#ifndef _ASM
#include <sys/types.h>
#include <sys/time.h>
#endif /* _ASM */
*** 74,84 ****
#define LOCK_SAMPLE_INTERVAL(i) (((i) & 0xff) == 0)
/*
* Externs for CLOCK_LOCK and clock resolution
*/
! extern volatile int hres_lock;
extern hrtime_t hrtime_base;
extern int clock_res;
#endif /* _ASM */
--- 73,83 ----
#define LOCK_SAMPLE_INTERVAL(i) (((i) & 0xff) == 0)
/*
* Externs for CLOCK_LOCK and clock resolution
*/
! extern volatile uint32_t hres_lock;
extern hrtime_t hrtime_base;
extern int clock_res;
#endif /* _ASM */