diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-10-08 20:56:11 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2020-10-08 20:56:11 +0000 |
commit | 8e82f101720fa98b284c120dda4dab1037f3810c (patch) | |
tree | 9aacd914bc89b811a8adfc5fac70962f8dd17c80 /sys/x86 | |
parent | 8c576a279ed5ac377953824c11206a86c0f155c1 (diff) | |
download | src-8e82f101720fa98b284c120dda4dab1037f3810c.tar.gz src-8e82f101720fa98b284c120dda4dab1037f3810c.zip |
timer_restore is now unused, remove it
apm was the only consumer of timer_restore. Now that it's gone, this
can be removed.
Notes
Notes:
svn path=/head/; revision=366547
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/isa/clock.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/x86/isa/clock.c b/sys/x86/isa/clock.c index 0438e4def2c9..568097d18fdf 100644 --- a/sys/x86/isa/clock.c +++ b/sys/x86/isa/clock.c @@ -388,26 +388,6 @@ i8254_restore(void) set_i8254_freq(MODE_STOP, 0); } -#ifndef __amd64__ -/* - * Restore all the timers non-atomically (XXX: should be atomically). - * - * This function is called from pmtimer_resume() to restore all the timers. - * This should not be necessary, but there are broken laptops that do not - * restore all the timers on resume. The APM spec was at best vague on the - * subject. - * pmtimer is used only with the old APM power management, and not with - * acpi, which is required for amd64, so skip it in that case. - */ -void -timer_restore(void) -{ - - i8254_restore(); /* restore i8254_freq and hz */ - atrtc_restore(); /* reenable RTC interrupts */ -} -#endif - /* This is separate from startrtclock() so that it can be called early. */ void i8254_init(void) |