]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal: gov_fair_share: Use trip thresholds instead of trip temperatures
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2024 16:58:56 +0000 (18:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 08:15:06 +0000 (10:15 +0200)
commit0292991ce46c75c28d6ccfe7a7f8ac962a824291
treed4cfdd91981fa338e3e6e576e35e20029d0cfcad
parentbec55332c24eb671a1b6de17b38a70dee2472245
thermal: gov_fair_share: Use trip thresholds instead of trip temperatures

In principle, the Fair Share governor should take trip hysteresis
into account.  After all, once a trip has been crossed on the way up,
mitigation is still needed until it is crossed on the way down.

For this reason, make it use trip thresholds that are computed by
the core when trips are crossed, so as to apply mitigations if the
zone temperature is in a hysteresis rage of one or more trips that
were crossed on the way up, but have not been crossed on the way
down yet.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/gov_fair_share.c