OSDN Git Service

thermal/drivers/netlink: Add the temperature when crossing a trip point
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 1 Oct 2021 22:33:23 +0000 (00:33 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Oct 2021 13:41:38 +0000 (15:41 +0200)
commitfc656fa14da7865774b4251afa88ffcf22bf02d2
tree8ea3973d8f57e392ac05e9aff9cb47e6e17af595
parent69c560d2eb3cff7ebe876cd224a3dc05852990b5
thermal/drivers/netlink: Add the temperature when crossing a trip point

The slope of the temperature increase or decrease can be high and when
the temperature crosses the trip point, there could be a significant
difference between the trip temperature and the measured temperatures.

That forces the userspace to read the temperature back right after
receiving a trip violation notification.

In order to be efficient, give the temperature which resulted in the
trip violation.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20211001223323.1836640-1-daniel.lezcano@linaro.org
drivers/thermal/thermal_core.c
drivers/thermal/thermal_netlink.c
drivers/thermal/thermal_netlink.h