summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/devcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/devcache.c')
-rw-r--r--usr/src/uts/common/os/devcache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/os/devcache.c b/usr/src/uts/common/os/devcache.c
index 1e32e5c950..a96d178d66 100644
--- a/usr/src/uts/common/os/devcache.c
+++ b/usr/src/uts/common/os/devcache.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1051,9 +1051,9 @@ nvpflush_daemon(void)
for (;;) {
CALLB_CPR_SAFE_BEGIN(&cprinfo);
while (do_nvpflush == 0) {
- clk = cv_timedwait(&nvpflush_cv, &nvpflush_lock,
- ddi_get_lbolt() +
- (nvpdaemon_idle_time * TICKS_PER_SECOND));
+ clk = cv_reltimedwait(&nvpflush_cv, &nvpflush_lock,
+ (nvpdaemon_idle_time * TICKS_PER_SECOND),
+ TR_CLOCK_TICK);
if ((clk == -1 && do_nvpflush == 0 &&
nvpflush_timer_busy == 0) || sys_shutdown) {
/*