diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-06-29 18:10:12 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-07-28 18:29:47 +0300 |
commit | 4102c4042a33c682021683ec26c2dca3fd9d7cc2 (patch) | |
tree | 1ac09713a20050b30cc203f9e2a2568efc8c385e /drivers/thermal | |
parent | 25bff3ed9a8aaee45c3b554cca58673f1bea1bdc (diff) | |
download | linux-4102c4042a33c682021683ec26c2dca3fd9d7cc2.tar.xz |
thermal/core: Remove DROP_FULL and RAISE_FULL
The trends DROP_FULL and RAISE_FULL are not used and were never used
in the past AFAICT. Remove these conditions as they seems to not be
handled anywhere.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20220629151012.3115773-2-daniel.lezcano@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/gov_step_wise.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/thermal/gov_step_wise.c b/drivers/thermal/gov_step_wise.c index 6efbfaf014da..9729b46d0258 100644 --- a/drivers/thermal/gov_step_wise.c +++ b/drivers/thermal/gov_step_wise.c @@ -67,10 +67,6 @@ static unsigned long get_target_state(struct thermal_instance *instance, next_target = clamp((cur_state + 1), instance->lower, instance->upper); } break; - case THERMAL_TREND_RAISE_FULL: - if (throttle) - next_target = instance->upper; - break; case THERMAL_TREND_DROPPING: if (cur_state <= instance->lower) { if (!throttle) @@ -81,13 +77,6 @@ static unsigned long get_target_state(struct thermal_instance *instance, } } break; - case THERMAL_TREND_DROP_FULL: - if (cur_state == instance->lower) { - if (!throttle) - next_target = THERMAL_NO_TARGET; - } else - next_target = instance->lower; - break; default: break; } |