summaryrefslogtreecommitdiffstats
path: root/usr.sbin/powerd/Makefile
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-10-19 04:48:44 +0000
committernjl <njl@FreeBSD.org>2005-10-19 04:48:44 +0000
commitd5e033e83c2ba827cba739a6e736c3f902ecc7c6 (patch)
tree5e7891c049dce9fe7672fb10c552ef6ca31d5416 /usr.sbin/powerd/Makefile
parentdf7513965dac96f32906c83504d33e41c854d257 (diff)
downloadFreeBSD-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 'usr.sbin/powerd/Makefile')
-rw-r--r--usr.sbin/powerd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/powerd/Makefile b/usr.sbin/powerd/Makefile
index 207e728..bf39dcd 100644
--- a/usr.sbin/powerd/Makefile
+++ b/usr.sbin/powerd/Makefile
@@ -3,6 +3,7 @@
PROG= powerd
MAN= powerd.8
WARNS?= 6
+LDFLAGS+= -lpthread
DPADD= ${LIBUTIL}
LDADD= -lutil
OpenPOWER on IntegriCloud