]> git.karo-electronics.de Git - linux-beck.git/commit
thermal/x86_pkg_temp: Replace open coded cpu search
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 17:57:06 +0000 (17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:24:44 +0000 (10:24 +0800)
commit21a3d3d4c8f373054421443e244c75a94a40b1ae
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