summaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal_core.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-10 20:42:35 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-24 21:42:31 +0300
commitad2f8bccd0e6e65af4e771e69cc2f2cfa69a6e07 (patch)
treeb5bfcaadcfce56187e0916235348d07cd7938a16 /drivers/thermal/thermal_core.c
parentc1beda1cfca53363ad3261c194df6cba4198f021 (diff)
downloadlinux-ad2f8bccd0e6e65af4e771e69cc2f2cfa69a6e07.tar.xz
thermal: core: Drop the .throttle() governor callback
Since all of the governors in the tree have been switched over to using the new callbacks, either .trip_crossed() or .manage(), the .throttle() governor callback is not used any more, so drop it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/thermal_core.c')
-rw-r--r--drivers/thermal/thermal_core.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 221e1924240d..39ea842d883d 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -310,15 +310,6 @@ static struct thermal_governor *thermal_get_tz_governor(struct thermal_zone_devi
return def_governor;
}
-static void handle_non_critical_trips(struct thermal_zone_device *tz,
- const struct thermal_trip *trip)
-{
- struct thermal_governor *governor = thermal_get_tz_governor(tz);
-
- if (governor->throttle)
- governor->throttle(tz, trip);
-}
-
void thermal_governor_update_tz(struct thermal_zone_device *tz,
enum thermal_notify_event reason)
{
@@ -418,8 +409,6 @@ static void handle_thermal_trip(struct thermal_zone_device *tz,
if (trip->type == THERMAL_TRIP_CRITICAL || trip->type == THERMAL_TRIP_HOT)
handle_critical_trips(tz, trip);
- else
- handle_non_critical_trips(tz, trip);
}
static void update_temperature(struct thermal_zone_device *tz)