diff options
author | 2020-09-03 21:38:46 +0000 | |
---|---|---|
committer | 2020-09-03 21:38:46 +0000 | |
commit | b71393f7ccf33777e6e9f467aefed6f7e63e6dec (patch) | |
tree | bac45861d6f404c60e36a0fa2d1868dcb2c0e1b2 /usr.bin/tmux/cmd-load-buffer.c | |
parent | oops, i tripped over $Mdocdate$ again; so sync the date after the commit (diff) | |
download | wireguard-openbsd-b71393f7ccf33777e6e9f467aefed6f7e63e6dec.tar.xz wireguard-openbsd-b71393f7ccf33777e6e9f467aefed6f7e63e6dec.zip |
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 'usr.bin/tmux/cmd-load-buffer.c')
0 files changed, 0 insertions, 0 deletions