summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Kruchinin <dan.kruchinin@nexenta.com>2012-02-04 22:28:36 -0800
committerJohn Sonnenschein <johns@joyent.com>2012-03-13 04:21:06 +0000
commit129273e12b090604336ba24f45d53f8e05ab2ad5 (patch)
treecaede9a9b05bda4466f680855b92037f45ae9689
parenta0411723e7b34ca0ced21b7d39ad31b2fb729eea (diff)
downloadillumos-joyent-129273e12b090604336ba24f45d53f8e05ab2ad5.tar.gz
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>
-rw-r--r--usr/src/uts/i86pc/io/todpc_subr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/i86pc/io/todpc_subr.c b/usr/src/uts/i86pc/io/todpc_subr.c
index 244a8a8738..51bf1804d2 100644
--- a/usr/src/uts/i86pc/io/todpc_subr.c
+++ b/usr/src/uts/i86pc/io/todpc_subr.c
@@ -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 @@ todpc_get(tod_ops_t *top)
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 */