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>

*** 20,29 **** --- 20,30 ---- */ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2016 Joyent, Inc. */ #include <sys/types.h> #include <sys/clock.h> #include <sys/panic.h>
*** 69,78 **** --- 70,84 ---- int hrtime_fake_mt = 1; static volatile hrtime_t hrtime_last; static hrtime_t hrtime_suspend_time; static hrtime_t hrtime_addend; + volatile uint32_t hres_lock; + hrtime_t hres_last_tick; + int64_t hrestime_adj; + volatile timestruc_t hrestime; + /* * These functions are used in DTrace probe context, and must be removed from * fbt consideration. Currently fbt ignores all weak symbols, so this will * achieve that. */