diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-09-03 21:38:47 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-09-03 21:38:47 +0000 |
commit | 98b143791729f70e6115ce14146b19285ece2a27 (patch) | |
tree | 92b21e4a484fc6b7473c6db78912045aa0dd4d36 /sys/crypto | |
parent | ddb7f46e254d5477cd1b386367aa37747a95e3d8 (diff) |
amd64: lapic: refactor timer programming
We reprogram the lapic timer by hand in three separate places.
This is error-prone and difficult to read.
To clean things up, introduce routines for reprogramming the lapic
timer in a given mode. lapic_timer_oneshot() starts a oneshot
countdown. lapic_timer_periodic() starts a repeating countdown.
Both of these routines call lapic_timer_start(), wherein we actually
write the lapic registers.
With input from dlg@.
Earlier version eyeballed by mlarkin@.
Suspend/resume tested by gnezdo@.
Diffstat (limited to 'sys/crypto')
0 files changed, 0 insertions, 0 deletions