summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-10 19:57:38 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-24 11:15:04 +0300
commitbec55332c24eb671a1b6de17b38a70dee2472245 (patch)
tree77238ee4681e29080088ef307578f13327ea48ac /lib/mpi/mpi-sub-ui.c
parentfe036266504796c84adee28b64c347d3acf4206e (diff)
downloadlinux-bec55332c24eb671a1b6de17b38a70dee2472245.tar.xz
thermal: gov_fair_share: Use .manage() callback instead of .throttle()
The Fair Share governor tries very hard to be stateless and so it calls get_trip_level() from fair_share_throttle() every time, even though the number produced by this function for all of the trips during a given thermal zone update is actually the same. Since get_trip_level() walks all of the trips in the thermal zone every time it is called, doing this may generate quite a bit of completely useless overhead. For this reason, make the governor use the new .manage() callback instead of .throttle() which allows it to call get_trip_level() just once and use the value computed by it to handle all of the trips. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions