Date: Wed, 19 Oct 2005 04:48:44 +0000 (UTC) From: Nate Lawson <njl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/powerd Makefile powerd.c Message-ID: <200510190448.j9J4miSB044472@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
njl 2005-10-19 04:48:44 UTC
FreeBSD src repository
Modified files:
usr.sbin/powerd Makefile powerd.c
Log:
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>
Revision Changes Path
1.4 +1 -0 src/usr.sbin/powerd/Makefile
1.13 +178 -28 src/usr.sbin/powerd/powerd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510190448.j9J4miSB044472>
