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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:11 +0000 (11:45 +0900)
commit78c543f1a2d13bd2b5d57d98481469980db31a80
tree47d0513d0e641f87dd186a2bb12b5d10b6c84ed9
parente7c8c40d93d56e8417e981b0613eb329bc642653
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