Print this page
XXXX introduce drv_sectohz
*** 108,127 ****
int
sdev_wait4lookup(struct sdev_node *dv, int cmd)
{
clock_t expire;
clock_t rv;
! clock_t wakeup = drv_usectohz(2 * 1000000);
int rval = ENOENT;
int is_lookup = (cmd == SDEV_LOOKUP);
ASSERT(cmd == SDEV_LOOKUP || cmd == SDEV_READDIR);
ASSERT(MUTEX_HELD(&dv->sdev_lookup_lock));
/* tick value at which wait expires */
expire = ddi_get_lbolt() +
! drv_usectohz(dev_node_wait_timeout * 1000000);
sdcmn_err6(("wait4lookup %s %s, %ld %d\n",
is_lookup ? "lookup" : "readdir",
dv->sdev_name, expire - ddi_get_lbolt(), dv->sdev_state));
--- 108,127 ----
int
sdev_wait4lookup(struct sdev_node *dv, int cmd)
{
clock_t expire;
clock_t rv;
! clock_t wakeup = drv_sectohz(2);
int rval = ENOENT;
int is_lookup = (cmd == SDEV_LOOKUP);
ASSERT(cmd == SDEV_LOOKUP || cmd == SDEV_READDIR);
ASSERT(MUTEX_HELD(&dv->sdev_lookup_lock));
/* tick value at which wait expires */
expire = ddi_get_lbolt() +
! drv_sectohz(dev_node_wait_timeout);
sdcmn_err6(("wait4lookup %s %s, %ld %d\n",
is_lookup ? "lookup" : "readdir",
dv->sdev_name, expire - ddi_get_lbolt(), dv->sdev_state));
*** 232,242 ****
clock_t expire;
ASSERT(sdev_upcall_door == NULL);
/* timeout expires this many ticks in the future */
! expire = ddi_get_lbolt() + drv_usectohz(dev_devfsadm_startup * 1000000);
if (sdev_door_upcall_filename == NULL) {
if ((error = sdev_start_devfsadmd()) != 0) {
return (error);
}
--- 232,242 ----
clock_t expire;
ASSERT(sdev_upcall_door == NULL);
/* timeout expires this many ticks in the future */
! expire = ddi_get_lbolt() + drv_sectohz(dev_devfsadm_startup);
if (sdev_door_upcall_filename == NULL) {
if ((error = sdev_start_devfsadmd()) != 0) {
return (error);
}