Fix a BM control -related panic by bringing rev 1.44-1.45
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Mon, 7 Aug 2006 23:27:22 +0000 (23:27 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Mon, 7 Aug 2006 23:27:22 +0000 (23:27 +0000)
commit6a1d0924a45a982e3b614807343783a5e6943d9f
tree21ebd77c2dd6061df9634a9288afbd68f39fe6f5
parentd18ae742b5e241d26367be328ca6c6492855cb55
Fix a BM control -related panic by bringing rev 1.44-1.45
of acpi_cpu.c from FreeBSD:
 revision 1.45
 date: 2004-10-11 21:15:10 +0000;  author: njl;  state: Exp;  lines: +28 -16;
 Update C3 support when BM control is not present.

 * Fix a bug where caches were flushed on non-C3 transitions.
 * Be sure a working flush cache instruction is present before using it.
 * Disable C3 completely if it isn't present.
 ----------------------------
 revision 1.44
 date: 2004-10-11 06:06:42 +0000;  author: njl;  state: Exp;  lines: +28 -17;
 If bus mastering control is not available (PM2_BLK), don't just disable
 C3.  Instead, flush caches before entering C3.  This may be slower but
 provides good power savings.

Reported-by: Richard Nyberg <rnyberg at murmeldjur.se>
sys/dev/acpica5/acpi_cpu.c