summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/clock.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>1999-10-30 14:56:01 +0000
committeriwasaki <iwasaki@FreeBSD.org>1999-10-30 14:56:01 +0000
commit945a25b48913c2f1a8b8f0aadcb902c3189ed927 (patch)
tree44779f7a28dcd79760060b54d492be07d1a097e2 /sys/i386/include/clock.h
parent437d3feb752ab5ec3128771f54f8a684bf186e02 (diff)
downloadFreeBSD-src-945a25b48913c2f1a8b8f0aadcb902c3189ed927.zip
FreeBSD-src-945a25b48913c2f1a8b8f0aadcb902c3189ed927.tar.gz
i8254_restore is called from apm_default_resume() to reload
the countdown register. this should not be necessary but there are broken laptops that do not restore the countdown register on resume. when it happnes, it messes up the hardclock interval and system clock, which leads to the infamous "calcru: negative time" problem. Submitted by: kjc, iwasaki Reviewed by: Steve O'Hara-Smith <steveo@eircom.net> and committers. Obtained from: PAO3
Diffstat (limited to 'sys/i386/include/clock.h')
-rw-r--r--sys/i386/include/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index f5c654a..8d0e2d3 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -44,6 +44,7 @@ int acquire_timer1 __P((int mode));
int release_timer1 __P((void));
#endif
int sysbeep __P((int pitch, int period));
+void i8254_restore __P((void));
#endif /* KERNEL */
OpenPOWER on IntegriCloud