clock.c revision a90cf9f29973990687fa61de9f1f6ea22e924e40
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
#include <time.h>
int hz = 1000;
int tick_per_msec = 0;
int msec_per_tick = 1;
int usec_per_tick = 1000;
int nsec_per_tick = 1000000;
#pragma init(_boot_time_init)
static int
_boot_time_init(void)
{
return (0);
}
ddi_get_lbolt(void)
{
return (hrt / nsec_per_tick);
}
ddi_get_lbolt64(void)
{
return (hrt / nsec_per_tick);
}
void
{
}
gethrtime_unscaled(void)
{
return (gethrtime());
}
void
{
}
gethrestime_sec(void)
{
}
/* ARGSUSED */
void
scalehrtime(hrtime_t *t)
{
}