diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-06-24 19:37:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-28 03:14:42 -0400 |
commit | c5ab81ca01ad4a8870b456f93dd2fb3d815f91d9 (patch) | |
tree | 7e27bfff185a321b3ac43be660093dece5cec993 /lib | |
parent | a3c6598f92cf27d3d201a2a5b052563148156837 (diff) |
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions