# HG changeset patch # User Dan Kruchinin # Date 1328423316 28800 # Node ID 51d528ff7e15311c1c9723df53150a5e4963b917 # Parent 565bd3085959162ea6dd8d13298ec1c2a1ae3456 2050 todpc_rtcget() returns error sometimes Reviewed by: Dan McDonald Reviewed by: Garrett D'Amore Approved by: Garrett D'Amore diff -r 565bd3085959 -r 51d528ff7e15 usr/src/uts/i86pc/io/todpc_subr.c --- a/usr/src/uts/i86pc/io/todpc_subr.c Sat Feb 04 15:55:57 2012 -0500 +++ b/usr/src/uts/i86pc/io/todpc_subr.c Sat Feb 04 22:28:36 2012 -0800 @@ -18,7 +18,9 @@ * * CDDL HEADER END */ - +/* + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. + */ /* * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. @@ -176,10 +178,8 @@ ASSERT(MUTEX_HELD(&tod_lock)); if (todpc_rtcget((unsigned char *)&rtc)) { - ts.tv_sec = 0; - ts.tv_nsec = 0; tod_status_set(TOD_GET_FAILED); - return (ts); + return (hrestime); } /* assume that we wrap the rtc year back to zero at 2000 */