]> git.baikalelectronics.ru Git - kernel.git/commit
Thermal: x86_pkg_temp: Limit number of pkg temp zones
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 15 Jul 2013 22:38:52 +0000 (15:38 -0700)
committerZhang Rui <rui.zhang@intel.com>
Tue, 16 Jul 2013 00:27:25 +0000 (08:27 +0800)
commit7bd698a9254e067dbedb97c29e556a71c889ed57
treed373b5c406fd2bbdbed68182caf91b13f00cc851
parent2761d74a83366d5169c3548f50d1686d2ef1ed6e
Thermal: x86_pkg_temp: Limit number of pkg temp zones

Although it is unlikley that physical package id is set to some
arbitary number, it is better to prevent in anycase. Since package
temp zones use this in thermal zone type and for allocation, added
a limit.

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