aboutsummaryrefslogtreecommitdiff
path: root/sbin/adjkerntz/adjkerntz.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-12-12 05:43:28 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-12-12 05:43:28 +0000
commit408399029a054bfaa059bfc52c5424aaf14ada32 (patch)
tree38c285fd23afccd1d86c6948e4b723b7d0546e1b /sbin/adjkerntz/adjkerntz.c
parent62be897817393ff576d4f3843c29e0f777d0ea03 (diff)
downloadsrc-408399029a054bfaa059bfc52c5424aaf14ada32.tar.gz
src-408399029a054bfaa059bfc52c5424aaf14ada32.zip
Optimize setting of DISRTCSET
Notes
Notes: svn path=/head/; revision=5077
Diffstat (limited to 'sbin/adjkerntz/adjkerntz.c')
-rw-r--r--sbin/adjkerntz/adjkerntz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c
index 85584ac72f60..7716f2abe8ca 100644
--- a/sbin/adjkerntz/adjkerntz.c
+++ b/sbin/adjkerntz/adjkerntz.c
@@ -212,8 +212,8 @@ again:
stz = &tz;
}
- /* if init, don't touch RTC at all */
- if (init) {
+ /* if init and something will be changed, don't touch RTC at all */
+ if (init && (stv != NULL || kern_offset != offset)) {
mib[0] = CTL_MACHDEP;
mib[1] = CPU_DISRTCSET;
len = sizeof(disrtcset);