>From ab9c9150a947853654dc43dacbe7eed5f1356b63 Mon Sep 17 00:00:00 2001 From: Srinivas Pandruvada Date: Wed, 10 Jul 2013 16:19:44 -0700 Subject: [PATCH] Thermal: x86 package temperature support Even if there is a DTS sensor but no Package temp support, don't continue as MSR read may generate exception. Signed-off-by: Srinivas Pandruvada --- drivers/thermal/x86_pkg_temp_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/x86_pkg_temp_thermal.c index 5de56f6..0592135 100644 --- a/drivers/thermal/x86_pkg_temp_thermal.c +++ b/drivers/thermal/x86_pkg_temp_thermal.c @@ -511,8 +511,7 @@ static int get_core_online(unsigned int cpu) /* Check if there is already an instance for this package */ if (!phdev) { - if (!cpu_has(c, X86_FEATURE_DTHERM) && - !cpu_has(c, X86_FEATURE_PTS)) + if (!cpu_has(c, X86_FEATURE_PTS)) return -ENODEV; if (pkg_temp_thermal_device_add(cpu)) return -ENODEV; -- 1.7.11.7