ACPI: C-States: bm_activity improvements
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 24 Jun 2006 23:37:00 +0000 (19:37 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 28 Jun 2006 07:14:42 +0000 (03:14 -0400)
commitc5ab81ca01ad4a8870b456f93dd2fb3d815f91d9
tree7e27bfff185a321b3ac43be660093dece5cec993
parenta3c6598f92cf27d3d201a2a5b052563148156837
ACPI: C-States: bm_activity improvements

Do not assume there was bus mastering activity if the idle handler didn't get
called, as there's only reason to not enter C3-type sleep if there is bus
master activity going on.  Only for the "promotion" into C3-type sleep bus
mastering activity is taken into account, and there only current bus mastering
activity, and not pure guessing should lead to the decision on whether to
enter C3-type sleep or not.

Also, as bm_activity is a jiffy-based bitmask (bit 0: bus mastering activity
during this juffy, bit 31: bus mastering activity 31 jiffies ago), fix the
setting of bit 0, as it might be called multiple times within one jiffy.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c