sysclk: actually refresh the config service before getting values

This commit is contained in:
souldbminersmwc
2025-12-14 10:30:58 -05:00
parent d76cd2e8f9
commit 1c83a35db8
3 changed files with 65 additions and 104 deletions

View File

@@ -15,7 +15,9 @@
*
*/
/* --------------------------------------------------------------------------
/*
* --------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <p-sam@d3vs.net>, <natinusala@gmail.com>, <m4x@m4xw.net>
* wrote this file. As long as you retain this notice you can do whatever you
@@ -24,7 +26,6 @@
* --------------------------------------------------------------------------
*/
#pragma once
#include <atomic>
#include <ctime>
@@ -65,7 +66,6 @@ class Config
const char* GetConfigValueName(SysClkConfigValue val, bool pretty);
void GetConfigValues(SysClkConfigValueList* out_configValues);
bool SetConfigValues(SysClkConfigValueList* configValues, bool immediate);
bool ResetConfigValue(SysClkConfigValue kval);
protected:
void Load();
void Close();
@@ -85,4 +85,4 @@ class Config
std::atomic_bool enabled;
std::uint32_t overrideFreqs[SysClkModule_EnumMax];
std::uint64_t configValues[SysClkConfigValue_EnumMax];
};
};