diff options
| author | Trevor Thompson <Trevor.Thompson@Sun.COM> | 2010-02-24 08:29:44 +0000 | 
|---|---|---|
| committer | Trevor Thompson <Trevor.Thompson@Sun.COM> | 2010-02-24 08:29:44 +0000 | 
| commit | 8fc99e42676a23421c75e76660640f9765d693b1 (patch) | |
| tree | 30d7a48022995f104d462a9b35944cf08a66338b /usr/src/uts/common/os/timers.c | |
| parent | d3b2efc749bec3b757d5f018cf78c9a09fa29cb3 (diff) | |
| download | illumos-joyent-8fc99e42676a23421c75e76660640f9765d693b1.tar.gz | |
6737518 tod_validate() may miss register corruption
6785049 todm5819p_rmc driver can generate time reversals of min/hour/day/etc minus 1 second
6923851 Tidy up complaints from 'hg pbchk' regarding several files.
Diffstat (limited to 'usr/src/uts/common/os/timers.c')
| -rw-r--r-- | usr/src/uts/common/os/timers.c | 8 | 
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; | 
