summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-10 18:12:45 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-23 20:39:50 +0200
commitca0e9728d37215afe943d508a1935d13a96ea88e (patch)
tree980c02a7ea0420b42295222e75264d35966bcfcb /tools/perf/scripts/python/export-to-sqlite.py
parent41ddbcc6fd2cd8ec3100fdea9044f3f377b6ec11 (diff)
thermal: gov_power_allocator: Eliminate a redundant variable
Notice that the passive field in struct thermal_zone_device is not used by the Power Allocator governor itself and so the ordering of its updates with respect to allow_maximum_power() or allocate_power() does not matter. Accordingly, make power_allocator_manage() update that field right before returning, which allows the current value of it to be passed directly to allow_maximum_power() without using the additional update variable that can be dropped. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions