diff options
author | njl <njl@FreeBSD.org> | 2005-10-19 04:48:44 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-10-19 04:48:44 +0000 |
commit | d5e033e83c2ba827cba739a6e736c3f902ecc7c6 (patch) | |
tree | 5e7891c049dce9fe7672fb10c552ef6ca31d5416 /games/fortune | |
parent | df7513965dac96f32906c83504d33e41c854d257 (diff) | |
download | FreeBSD-src-d5e033e83c2ba827cba739a6e736c3f902ecc7c6.zip FreeBSD-src-d5e033e83c2ba827cba739a6e736c3f902ecc7c6.tar.gz |
Use a pipe for reading devd events as another method of getting the AC line
status. Add a thread that waits for events on the named pipe instead of
polling the line status via apm or the ACPI sysctl. Additionally, use
robust error handling in case devd goes away or we temporarily can't set
a frequency (i.e., passive cooling has preempted our setting).
Later, this should be improved so that if adaptive control is not being used,
we will block while waiting for AC line events, saving a little CPU.
Submitted by: Frederik Lindberg <fli+freebsd-current/shapeshifter.se>
Diffstat (limited to 'games/fortune')
0 files changed, 0 insertions, 0 deletions