mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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 <sudeep.holla@arm.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com> Reviewed-by: Dhruva Gole <d-gole@ti.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
		
							parent
							
								
									480c64ae1c
								
							
						
					
					
						commit
						a897575e79
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -819,6 +819,9 @@ static int scmi_dvfs_device_opps_add(const struct scmi_protocol_handle *ph,
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			freq = dom->opp[idx].indicative_freq * dom->mult_factor;
 | 
								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.level = dom->opp[idx].perf;
 | 
				
			||||||
		data.freq = freq;
 | 
							data.freq = freq;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue