thermal/x86_pkg_temp_thermal: Support multi-die/package
authorZhang Rui <rui.zhang@intel.com>
Mon, 13 May 2019 17:58:52 +0000 (13:58 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 May 2019 08:08:33 +0000 (10:08 +0200)
commit724adec33c2491f26f739f285ddca25fca226e48
treed0b5fc420a300532d0dd52661f2b75d28204de36
parent32fb480e0a2cf1f71e4174d6477198c94dbc746c
thermal/x86_pkg_temp_thermal: Support multi-die/package

Package temperature sensors are actually implemented in hardware per-die.
Thus, the new multi-die/package systems sport mulitple package thermal
zones for each package.

Update the x86_pkg_temp_thermal to be "multi-die-aware", so it can expose
multiple zones per package, instead of just one.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/281695c854d38d3bdec803480c3049c36198ca44.1557769318.git.len.brown@intel.com
drivers/thermal/intel/x86_pkg_temp_thermal.c