]> git.karo-electronics.de Git - linux-beck.git/commit
thermal/x86_pkg_temp: Move work scheduled flag into package struct
authorThomas Gleixner <tglx@linutronix.de>
Tue, 22 Nov 2016 17:57:12 +0000 (17:57 +0000)
committerZhang Rui <rui.zhang@intel.com>
Wed, 30 Nov 2016 02:25:27 +0000 (10:25 +0800)
commit64ca738f1fba850fa522cd88b0b935492d846fff
treeeffe653f58d1fe8cc4ca8c1927ba2835c3d34956
parentab47bd964af698a014590a17cf9f902128a57a48
thermal/x86_pkg_temp: Move work scheduled flag into package struct

Storage for a boolean information whether work is scheduled for a package
is kept in separate allocated storage, which is resized when the number of
detected packages grows.

With the proper locking in place this is a completely pointless exercise
because we can simply stick it into the per package struct.

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