From d5e033e83c2ba827cba739a6e736c3f902ecc7c6 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 19 Oct 2005 04:48:44 +0000 Subject: 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 --- usr.sbin/powerd/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.sbin/powerd/Makefile') 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 -- cgit v1.1