thermal/x86_pkg_temp: Replace open coded cpu search
commit21a3d3d4c8f373054421443e244c75a94a40b1ae
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 17:57:06 +0000 (22 17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:24:44 +0000 (30 10:24 +0800)
tree036b8b71c35a3e2ad8eec7f0f4a08a0dfef59679
parent89baa56be7fad333db0a91198bf4026017ab737d
thermal/x86_pkg_temp: Replace open coded cpu search

find_next_sibling() iterates over the online cpus and searches for a cpu
with the same package id as the current cpu. This is a pointless exercise
as topology_core_cpumask() allows a simple cpumask search for an online cpu
on the same package.

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