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)
commit94e791f522595e2d5276e6d27a5b3b57f4e1cd8d
treed373b5c406fd2bbdbed68182caf91b13f00cc851
parentc7c1b3112e643d290471abd0f3b27ffeec6f28dd
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