From: Zhao Yakui Date: Mon, 10 Jan 2011 08:35:44 +0000 (+0800) Subject: ACPI: Check the returned value of set_cpus_allowed_ptr before T-state operation X-Git-Tag: v2.6.38-rc1~68^2~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daef1f35ea1e2cca125eecd5f078f40b55eb9105;p=pandora-kernel.git ACPI: Check the returned value of set_cpus_allowed_ptr before T-state operation Now before it executes the T-state operation on one CPU, it will try to migrate to the target CPU. Especially this is required on the system that uses the MSR_IA32_THERMAL_CONTROL register to switch T-state. But unfortunately it doesn't check whether the migration is successful or not. In such case we will get/set the incorrect T-state on the offline CPU as it fails in the migration to the offline CPU. Signed-off-by: Zhao Yakui Signed-off-by: Len Brown --- Reading git-diff-tree failed