Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Introduce THERMAL_TREND_RAISE_FULL and THERMAL_TREND_DROP_FULL

These two new thermal_trend types are used to tell the governor
that the temeprature is raising/dropping quickly.

Thermal cooling governors should handle this situation and make
proper decisions, e.g. set cooling state to upper/lower limit directly
instead of one step each time.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>

Zhang Rui d069015e 5f738967

+2
+2
include/linux/thermal.h
··· 74 74 THERMAL_TREND_STABLE, /* temperature is stable */ 75 75 THERMAL_TREND_RAISING, /* temperature is raising */ 76 76 THERMAL_TREND_DROPPING, /* temperature is dropping */ 77 + THERMAL_TREND_RAISE_FULL, /* apply highest cooling action */ 78 + THERMAL_TREND_DROP_FULL, /* apply lowest cooling action */ 77 79 }; 78 80 79 81 /* Events supported by Thermal Netlink */