summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4u/io/hardclk.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4u/io/hardclk.c')
-rw-r--r--usr/src/uts/sun4u/io/hardclk.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/usr/src/uts/sun4u/io/hardclk.c b/usr/src/uts/sun4u/io/hardclk.c
index 1e36967fc9..f23dc248c4 100644
--- a/usr/src/uts/sun4u/io/hardclk.c
+++ b/usr/src/uts/sun4u/io/hardclk.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,12 +19,10 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/param.h>
#include <sys/time.h>
#include <sys/systm.h>
@@ -162,14 +159,14 @@ tod_get(void)
return (ts);
}
+extern void tod_set_prev(timestruc_t);
+
void
tod_set(timestruc_t ts)
{
- /*
- * Prevent false alarm in tod_validate() due to tod value change.
- */
- tod_fault_reset();
+ tod_set_prev(ts); /* for tod_validate() */
tod_ops.tod_set(ts);
+ tod_status_set(TOD_SET_DONE); /* TOD was modified */
}