<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/syscons/apm, branch release/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2006-05-25T23:06:38Z</updated>
<entry>
<title>APM was calling the suspend process from a timeout.  This meant that</title>
<updated>2006-05-25T23:06:38Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2006-05-25T23:06:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d708737568327b8f50113babcbf42416bce99483'/>
<id>urn:sha1:d708737568327b8f50113babcbf42416bce99483</id>
<content type='text'>
other timeouts could not happen while suspending, including timeouts
for things like msleep.  This caused the system to hang on suspend
when the cbb was enabled, since its suspend path powered down the
socket which used a timeout to wait for it to be done.

APM now creates a thread when it is enabled, and deletes the thread
when it is disabled.  This thread takes the place of the timeout by
doing its polling every ~.9s.  When the thread is disabled, it will
wakeup early, otherwise it times out and polls the varius things the
old timeout polled (APM events, suspend delays, etc).

This makes my Sony VAIO 505TS suspend/resume correctly when APM is
enabled (ACPI is black listed on my 505TS).

This will likely fix other problems with the suspend path where
drivers would sleep with msleep and/or do other timeouts.  Maybe
there's some special case code that would use DELAY while suspending
and msleep otherwise that can be revisited and removed.

This was also tested by glebius@, who pointed out that in the patch I
sent him, I'd forgotten apm_saver.c

MFC After: 3 weeks
</content>
</entry>
<entry>
<title>No need to ifdef this pc98.</title>
<updated>2005-04-04T05:28:19Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-04-04T05:28:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9fc371f86b5c52603691a732822774f5523de867'/>
<id>urn:sha1:9fc371f86b5c52603691a732822774f5523de867</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Catch up with recent events.</title>
<updated>2003-03-27T07:37:02Z</updated>
<author>
<name>Matthew N. Dodd</name>
<email>mdodd@FreeBSD.org</email>
</author>
<published>2003-03-27T07:37:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=618095cceffb4bc563e8005c18fc5d018f75378c'/>
<id>urn:sha1:618095cceffb4bc563e8005c18fc5d018f75378c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use repo-copied files in sys/i386/bios.</title>
<updated>2003-03-24T19:14:46Z</updated>
<author>
<name>Matthew N. Dodd</name>
<email>mdodd@FreeBSD.org</email>
</author>
<published>2003-03-24T19:14:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b7b5ae3edbad0eca5ed8a9a08326ad0867b4d94d'/>
<id>urn:sha1:b7b5ae3edbad0eca5ed8a9a08326ad0867b4d94d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added dependency on the apm(4) module.</title>
<updated>2003-02-15T21:22:19Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2003-02-15T21:22:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ce9429c201211d61c3bdde957fa1f626f64e13e'/>
<id>urn:sha1:4ce9429c201211d61c3bdde957fa1f626f64e13e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove __P.</title>
<updated>2002-03-20T06:48:11Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-03-20T06:48:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e57574233a3e98791b850c5ec6cba27f99bfa405'/>
<id>urn:sha1:e57574233a3e98791b850c5ec6cba27f99bfa405</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added necessary include for pc98.</title>
<updated>2001-01-25T09:56:04Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2001-01-25T09:56:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ba4c5e6950b14ce5eb69bc5d953574f203e01dc4'/>
<id>urn:sha1:ba4c5e6950b14ce5eb69bc5d953574f203e01dc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added PC-98 apm support.</title>
<updated>2001-01-22T11:27:25Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2001-01-22T11:27:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5069714534cba67f1985e6dfe23b145178372b5f'/>
<id>urn:sha1:5069714534cba67f1985e6dfe23b145178372b5f</id>
<content type='text'>
Submitted by:	MURAMATSU Atsushi &lt;amura@ma3.seikyou.ne.jp&gt;
</content>
</entry>
<entry>
<title>select() DKI is now in &lt;sys/selinfo.h&gt;.</title>
<updated>2001-01-09T04:33:49Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>2001-01-09T04:33:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a2c3d48c6383833e24ee0f978460e00fefa6b28'/>
<id>urn:sha1:0a2c3d48c6383833e24ee0f978460e00fefa6b28</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't needlessly indirect the APM softstate. It does nothing but</title>
<updated>2000-10-31T21:00:15Z</updated>
<author>
<name>Nick Sayer</name>
<email>nsayer@FreeBSD.org</email>
</author>
<published>2000-10-31T21:00:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=27beb2e98db3193bd22010b9eb00cc7787bb0a2f'/>
<id>urn:sha1:27beb2e98db3193bd22010b9eb00cc7787bb0a2f</id>
<content type='text'>
obfuscate the code.
</content>
</entry>
</feed>
