ACPI: Thermal issues on HP nx6325
commit0a6139027f3986162233adc17285151e78b39cac
authorKonstantin Karasyov <konstantin.a.karasyov@intel.com>
Fri, 16 Feb 2007 06:47:06 +0000 (16 01:47 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 16 Feb 2007 06:47:06 +0000 (16 01:47 -0500)
treea8df80c919bc5f05c51b91a8708436fc2c9933df
parent724339d76d9407cd1a8ad32a9c1fdf64840cc51b
ACPI: Thermal issues on HP nx6325

The previous reference counting scheme to enable power resources
got confused when multiple devices were present that might
repeatedly enable or disable the resource and throw off the count.

The new code simply lists the referencing devices which
are requesting the resource to be enabled.  When there are none,
then it is off.

Signed-off-by: Konstantin Karasyov <konstantin.a.karasyov@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/power.c