Re: [PATCH v4 1/5] arch_topology: Introduce thermal pressure update function

From: Lukasz Luba
Date: Tue Nov 23 2021 - 04:09:31 EST




On 11/16/21 11:39 PM, Thara Gopinath wrote:


On 11/9/21 2:57 PM, Lukasz Luba wrote:
The thermal pressure is a mechanism which is used for providing
information about reduced CPU performance to the scheduler. Usually code
has to convert the value from frequency units into capacity units,
which are understandable by the scheduler. Create a common conversion code
which can be just used via a handy API.

Internally, the topology_update_thermal_pressure() operates on frequency
in MHz and max CPU frequency is taken from 'freq_factor' (per-cpu).

Signed-off-by: Lukasz Luba <lukasz.luba@xxxxxxx>

Reviewed-by: Thara Gopinath <thara.gopinath@xxxxxxxxxx>


Thank you Thara for the review!