sysclk: small TDP rework
This commit is contained in:
@@ -662,7 +662,7 @@ protected:
|
|||||||
ValueThresholds tdpThresholdsLite(6400, 7500);
|
ValueThresholds tdpThresholdsLite(6400, 7500);
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
HocClkConfigValue_LiteTDPLimit,
|
HocClkConfigValue_LiteTDPLimit,
|
||||||
"Lite TDP Threshold",
|
"TDP Threshold",
|
||||||
ValueRange(4000, 8000, 100, "mW", 1),
|
ValueRange(4000, 8000, 100, "mW", 1),
|
||||||
"Power",
|
"Power",
|
||||||
&tdpThresholdsLite,
|
&tdpThresholdsLite,
|
||||||
|
|||||||
@@ -574,8 +574,7 @@ void ClockManager::VRRThread(void* arg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ClockManager::HandleSafetyFeatures() {
|
void ClockManager::HandleSafetyFeatures() {
|
||||||
AppletOperationMode opMode = appletGetOperationMode();
|
if(this->config->GetConfigValue(HocClkConfigValue_HandheldTDP) && (this->context->profile != SysClkProfile_Docked)) { // Enable while charging as non-PD charger can cause lack of power
|
||||||
if(this->config->GetConfigValue(HocClkConfigValue_HandheldTDP) && opMode == AppletOperationMode_Handheld) {
|
|
||||||
if(Board::GetConsoleType() == HorizonOCConsoleType_Hoag) {
|
if(Board::GetConsoleType() == HorizonOCConsoleType_Hoag) {
|
||||||
if(Board::GetPowerMw(SysClkPowerSensor_Avg) < -(int)this->config->GetConfigValue(HocClkConfigValue_LiteTDPLimit)) {
|
if(Board::GetPowerMw(SysClkPowerSensor_Avg) < -(int)this->config->GetConfigValue(HocClkConfigValue_LiteTDPLimit)) {
|
||||||
ResetToStockClocks();
|
ResetToStockClocks();
|
||||||
|
|||||||
Reference in New Issue
Block a user