[Sys-clk-OC] improve Auto-Boost CPU (reuse some code from Governor_PoC)

This commit is contained in:
KazushiM
2021-12-16 21:22:02 +08:00
parent 5a63431088
commit 12aab58198
8 changed files with 237 additions and 151 deletions

View File

@@ -19,7 +19,6 @@ static LockableMutex g_csv_mutex;
static std::atomic_bool g_has_initialized = false;
static bool g_log_enabled = false;
static bool g_boost_enabled = false;
static bool g_boost_start_enabled = false;
static bool g_downclock_dock_enabled = false;
static bool g_reversenx_tool_exist = false;
static bool g_reversenx_sync_enabled = false;
@@ -167,13 +166,6 @@ void FileUtils::InitCheckFlags()
g_boost_enabled = true;
fclose(file);
}
file = fopen(FILE_BOOST_START_FLAG_PATH, "r");
if (file)
{
g_boost_start_enabled = true;
fclose(file);
}
}
file = fopen(FILE_DOWNCLOCK_DOCK_FLAG_PATH, "r");
@@ -203,11 +195,6 @@ bool FileUtils::IsBoostEnabled()
return g_boost_enabled;
}
bool FileUtils::IsBoostStartEnabled()
{
return g_boost_start_enabled;
}
bool FileUtils::IsDownclockDockEnabled()
{
return g_downclock_dock_enabled;