From 46df2bf46cffda0543e032feeec9cc3671819ac6 Mon Sep 17 00:00:00 2001 From: ThunderStorms21th Date: Sun, 3 Jan 2021 02:17:21 +0100 Subject: [PATCH] thermal: Increase thermal trip points to 16 Some DT devices, mainly smartphones, do need more trip points to allow more fine grained thermal mitigations, hence allowing a better user experience (and overall performance), for example, by lowering the CPU clocks just a little for each temperature step. taken from : https://github.com/xxmustafacooTR/android_kernel_samsung_universal9810/commit/f40204b1964c2579aff1f7871e7d8c85d073e627 Signed-off-by: Henrique Pereira Signed-off-by: ThunderStorms21th --- include/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index a8b81be94..be48eb37b 100755 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -19,7 +19,7 @@ #include #define THERMAL_TRIPS_NONE -1 -#define THERMAL_MAX_TRIPS 12 +#define THERMAL_MAX_TRIPS 16 /* invalid cooling state */ #define THERMAL_CSTATE_INVALID -1UL