changeset 13596:51d528ff7e15

2050 todpc_rtcget() returns error sometimes Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Garrett D'Amore <garrett@damore.org>
author Dan Kruchinin <dan.kruchinin@nexenta.com>
date Sat, 04 Feb 2012 22:28:36 -0800
parents 565bd3085959
children 3eac1e8e0f4c
files usr/src/uts/i86pc/io/todpc_subr.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 */