thermal: netlink: Add the commands and the events for the thresholds
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Oct 2024 15:51:42 +0000 (17:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Oct 2024 12:54:01 +0000 (14:54 +0200)
commit1773572863c43a14a3e45f0591f28b7dec1ee52a
tree7f6c5573c435b1fe08681cc9c90f8044a25d8a19
parentdfa245f512566c8bdfbea44485471914764cf12a
thermal: netlink: Add the commands and the events for the thresholds

The thresholds exist but there is no notification neither action code
related to them yet.

These changes implement the netlink for the notifications when the
thresholds are crossed, added, deleted or flushed as well as the
commands which allows to get the list of the thresholds, flush them,
add and delete.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20241022155147.463475-3-daniel.lezcano@linaro.org
[ rjw: Use the thermal_zone guard for locking, subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_netlink.h
drivers/thermal/thermal_thresholds.c
drivers/thermal/thermal_thresholds.h
include/uapi/linux/thermal.h