diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 1999-10-30 14:56:01 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 1999-10-30 14:56:01 +0000 |
commit | 29803c20034d8b84776cbbfe18f1e1ae2904a2c4 (patch) | |
tree | 44779f7a28dcd79760060b54d492be07d1a097e2 /sys/i386/include/clock.h | |
parent | 840c0de7aa7558cbf2419f23fb6710af40115833 (diff) |
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
Notes
Notes:
svn path=/head/; revision=52669
Diffstat (limited to 'sys/i386/include/clock.h')
-rw-r--r-- | sys/i386/include/clock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h index f5c654a6a64f..8d0e2d3ef20e 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 */ |