diff options
author | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
---|---|---|
committer | Rafael Vanoni <rafael.vanoni@sun.com> | 2009-11-13 01:32:32 -0800 |
commit | d3d50737e566cade9a08d73d2af95105ac7cd960 (patch) | |
tree | 399b76a3f6bf107e2ff506d8f9c3333654b29fc7 /usr/src/uts/common/io/idm/idm_impl.c | |
parent | 1eff5f7761619411b3c31280fcd96cefc32968b7 (diff) | |
download | illumos-joyent-d3d50737e566cade9a08d73d2af95105ac7cd960.tar.gz |
PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling
6860030 tickless clock requires a clock() decoupled lbolt / lbolt64
Portions contributed by Chad Mynhier <cmynhier@gmail.com>
Diffstat (limited to 'usr/src/uts/common/io/idm/idm_impl.c')
-rw-r--r-- | usr/src/uts/common/io/idm/idm_impl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/idm/idm_impl.c b/usr/src/uts/common/io/idm/idm_impl.c index 273465734a..a271c22036 100644 --- a/usr/src/uts/common/io/idm/idm_impl.c +++ b/usr/src/uts/common/io/idm/idm_impl.c @@ -1079,7 +1079,7 @@ void idm_wd_thread(void *arg) { idm_conn_t *ic; - clock_t wake_time; + clock_t wake_time = SEC_TO_TICK(IDM_WD_INTERVAL); clock_t idle_time; /* Record the thread id for thread_join() */ @@ -1164,9 +1164,8 @@ idm_wd_thread(void *arg) mutex_exit(&ic->ic_state_mutex); } - wake_time = ddi_get_lbolt() + SEC_TO_TICK(IDM_WD_INTERVAL); - (void) cv_timedwait(&idm.idm_wd_cv, &idm.idm_global_mutex, - wake_time); + (void) cv_reltimedwait(&idm.idm_wd_cv, &idm.idm_global_mutex, + wake_time, TR_CLOCK_TICK); } mutex_exit(&idm.idm_global_mutex); |