ACPI: Reevaluate whether the T-state is supported or not after cpu is online/offline
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 10 Jan 2011 08:35:45 +0000 (16:35 +0800)
committerLen Brown <len.brown@intel.com>
Mon, 10 Jan 2011 17:35:28 +0000 (12:35 -0500)
commit5a344a505093dd65f82f338ffdb7208321b3630e
tree398d26e9108e54537be840e658cbe7972a810fb4
parentdaef1f35ea1e2cca125eecd5f078f40b55eb9105
ACPI: Reevaluate whether the T-state is supported or not after cpu is online/offline

After one CPU is offlined, it is unnecessary to switch T-state for it.
So it will be better that the throttling is disabled after the cpu
is offline.
At the same time after one cpu is online, we should check whether
the T-state is supported and then set the corresponding T-state
flag.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_driver.c
drivers/acpi/processor_throttling.c
include/acpi/processor.h