fix(sys-clk-oc): fix governor not setting clocks correctly: fixes #1

- move hz check from ApplyTargetFreq to caller
This commit is contained in:
hanabbi
2023-04-24 00:35:53 +09:00
committed by hanabbi
parent f981716933
commit 8cfab71f4d
2 changed files with 5 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ namespace GovernorImpl {
void ApplyNewFreqFromNormUtil(uint32_t norm);
void ApplyTargetFreq(uint32_t hz) {
if (!hz || m_target_hz == hz)
if (!hz)
return;
m_target_hz = hz;