fix(sys-clk-oc): improve governor by changing get_next_freq algorithm

use freq set in profile as max_freq instead of last entry in table
This commit is contained in:
hanabbi
2023-04-24 14:08:57 +09:00
committed by hanabbi
parent 8cfab71f4d
commit ccf0eccbf1
2 changed files with 8 additions and 4 deletions

View File

@@ -91,7 +91,8 @@ namespace GovernorImpl {
protected:
uint32_t CalcNormalizedUtil(uint32_t rawUtil) {
return ((uint64_t)rawUtil * m_target_hz / m_ref_hz);
//return ((uint64_t)rawUtil * m_target_hz / m_ref_hz);
return ((uint64_t)rawUtil * m_target_hz / max_hz);
};
void ApplyNewFreqFromNormUtil(uint32_t norm);