thermal/x86_pkg_temp: Get rid of ref counting
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 17:57:07 +0000 (17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:24:59 +0000 (10:24 +0800)
commitb6badbea30bb839624d8bed43e8b7711bc3dd317
tree60e5ac641756f044fcb093e5300ce1e0470fd740
parent09a674cd695f93bbbd09f24b5e13127c5907ef0c
thermal/x86_pkg_temp: Get rid of ref counting

There is no point in the whole package data refcounting dance because
topology_core_cpumask tells us whether this is the last cpu in the
package. If yes, then the package can go, if not it stays. It's already
serialized via the hotplug code.

While at it rename the first_cpu member of the package structure to
cpu. The first has absolutely no meaning.

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