]> Git Repo - J-linux.git/commitdiff
firmware: arm_scmi: Add support for marking certain frequencies as turbo
authorSibi Sankar <[email protected]>
Tue, 12 Mar 2024 09:47:25 +0000 (15:17 +0530)
committerViresh Kumar <[email protected]>
Fri, 15 Mar 2024 05:49:26 +0000 (11:19 +0530)
All opps above the sustained frequency are treated as turbo, so mark them
accordingly.

Suggested-by: Sudeep Holla <[email protected]>
Reviewed-by: Sudeep Holla <[email protected]>
Signed-off-by: Sibi Sankar <[email protected]>
Reviewed-by: Dhruva Gole <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
drivers/firmware/arm_scmi/perf.c

index be1801fb848db28cc34f63fd8f209e7ffedc5ca6..280b29c0a9033e5a5ac18eb399c70ff0122f375b 100644 (file)
@@ -819,6 +819,9 @@ static int scmi_dvfs_device_opps_add(const struct scmi_protocol_handle *ph,
                else
                        freq = dom->opp[idx].indicative_freq * dom->mult_factor;
 
+               /* All OPPs above the sustained frequency are treated as turbo */
+               data.turbo = freq > dom->sustained_freq_khz * 1000;
+
                data.level = dom->opp[idx].perf;
                data.freq = freq;
 
This page took 0.050064 seconds and 4 git commands to generate.