Skip to content

Commit a897575

Browse files
Sibi Sankarvireshk
authored andcommitted
firmware: arm_scmi: Add support for marking certain frequencies as turbo
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]>
1 parent 480c64a commit a897575

File tree

1 file changed

+3
-0
lines changed
  • drivers/firmware/arm_scmi

1 file changed

+3
-0
lines changed

drivers/firmware/arm_scmi/perf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,9 @@ static int scmi_dvfs_device_opps_add(const struct scmi_protocol_handle *ph,
819819
else
820820
freq = dom->opp[idx].indicative_freq * dom->mult_factor;
821821

822+
/* All OPPs above the sustained frequency are treated as turbo */
823+
data.turbo = freq > dom->sustained_freq_khz * 1000;
824+
822825
data.level = dom->opp[idx].perf;
823826
data.freq = freq;
824827

0 commit comments

Comments
 (0)