summaryrefslogtreecommitdiff
path: root/tools/lib/thermal/sampling.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-11-08 13:20:45 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2024-11-08 13:20:45 -1000
commitda4373fbcf006deda90e5e6a87c499e0ff747572 (patch)
treeb7f26405cbc882a60fb691689e40f9af057d2638 /tools/lib/thermal/sampling.c
parent4f63642c09dbcfe09ba50b896c382e224f7e630f (diff)
parent5469a8deac05391781bcd27e7c40f2c35121ca09 (diff)
downloadlinux-da4373fbcf006deda90e5e6a87c499e0ff747572.tar.gz
linux-da4373fbcf006deda90e5e6a87c499e0ff747572.tar.bz2
linux-da4373fbcf006deda90e5e6a87c499e0ff747572.zip
Merge tag 'thermal-6.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fixes from Rafael Wysocki: "These fix one issue in the qcom lmh thermal driver, a DT handling issue in the thermal core and two issues in the userspace thermal library: - Allow tripless thermal zones defined in a DT to be registered in accordance with the thermal DT bindings (Icenowy Zheng) - Annotate LMH IRQs with lockdep classes to prevent lockdep from reporting a possible recursive locking issue that cannot really occur (Dmitry Baryshkov) - Improve the thermal library "make clean" to remove a leftover symbolic link created during compilation and fix the sampling handler invocation in that library to pass the correct pointer to it (Emil Dahl Juhl, zhang jiao)" * tag 'thermal-6.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal/of: support thermal zones w/o trips subnode tools/lib/thermal: Remove the thermal.h soft link when doing make clean tools/lib/thermal: Fix sampling handler context ptr thermal/drivers/qcom/lmh: Remove false lockdep backtrace
Diffstat (limited to 'tools/lib/thermal/sampling.c')
-rw-r--r--tools/lib/thermal/sampling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/thermal/sampling.c b/tools/lib/thermal/sampling.c
index 70577423a9f0..f67c1f9ea1d7 100644
--- a/tools/lib/thermal/sampling.c
+++ b/tools/lib/thermal/sampling.c
@@ -16,6 +16,8 @@ static int handle_thermal_sample(struct nl_msg *n, void *arg)
struct thermal_handler_param *thp = arg;
struct thermal_handler *th = thp->th;
+ arg = thp->arg;
+
genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL);
switch (genlhdr->cmd) {