Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Chuck Cranor <chuck@netbsd.org>
List: source-changes
Date: 01/21/2001 05:23:33
Module Name:	syssrc
Committed By:	chuck
Date:		Sun Jan 21 03:23:32 UTC 2001

Modified Files:
	syssrc/sys/arch/i386/i386: apm.c

Log Message:
fix problem detected on IBM thinkpads when running apmd:
	when the display is closed, the machine suspends (as expected).
	when the display is opened again, it resumes and suspends again
	(must manually wake).

problem happens because driver fills the event queue with duplicate
events without allowing apmd to drain it by running.   fix it by
improving detection of duplicate events.

also cleanup and add some extra APMDEBUG code.


To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 syssrc/sys/arch/i386/i386/apm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.