summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-11-22 20:57:05 +0300
committerZhang Rui <rui.zhang@intel.com>2016-11-30 05:24:38 +0300
commit89baa56be7fad333db0a91198bf4026017ab737d (patch)
treea9154ef268c1f2fda4a7a8f89c899a3a52fa993f /tools/perf/scripts/python
parent768bd13c93c043a7793dca6d98ba75572bb9b956 (diff)
downloadlinux-89baa56be7fad333db0a91198bf4026017ab737d.tar.xz
thermal/x86_pkg_temp: Remove redundant package search
In pkg_temp_thermal_device_remove() the package device is searched at the beginning of the function. When the device refcount becomes zero another search for the same device is conducted. Remove the pointless loop and use the device pointer which was retrieved at the beginning of the function. 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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions