summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/timers.c')
-rw-r--r--usr/src/uts/common/os/timers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/timers.c b/usr/src/uts/common/os/timers.c
index 2fc7b7bff2..61acc6cf97 100644
--- a/usr/src/uts/common/os/timers.c
+++ b/usr/src/uts/common/os/timers.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1374,6 +1374,12 @@ utc_to_tod(time_t utc)
ASSERT(MUTEX_HELD(&tod_lock));
+ /*
+ * Note that tod_set_prev() assumes utc will be set to zero in
+ * the case of it being negative. Consequently, any change made
+ * to this behavior would have to be reflected in that function
+ * as well.
+ */
if (utc < 0) /* should never happen */
utc = 0;