Thermal: x86 package temp thermal crash
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 11 Jul 2013 16:50:30 +0000 (09:50 -0700)
committerZhang Rui <rui.zhang@intel.com>
Mon, 15 Jul 2013 08:20:58 +0000 (16:20 +0800)
commitf3ed0a17f0292300b3caca32d823ecd32554a667
tree21f0f2978f6119311d40e9d576156d25ce3f18d4
parent47188d39b5deeebf41f87a02af1b3935866364cf
Thermal: x86 package temp thermal crash

On systems with no package MSR support this caused crash as there
is a bug in the logic to check presence of DTHERM and PTS feature
together. Added a change so that when there is no PTS support, module
doesn't get loaded. Even if some CPU comes online with the PTS
feature disabled, and other CPUs has this support, this patch
will still prevent such MSR accesses.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reported-by: Daniel Walker <dwalker@fifo99.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/x86_pkg_temp_thermal.c