sysclk: remove enforce board limit
this setting is bugged, so remove it
This commit is contained in:
@@ -51,8 +51,6 @@ typedef enum {
|
|||||||
|
|
||||||
HocClkConfigValue_LiteTDPLimit,
|
HocClkConfigValue_LiteTDPLimit,
|
||||||
|
|
||||||
HocClkConfigValue_EnforceBoardLimit,
|
|
||||||
|
|
||||||
HorizonOCConfigValue_BatteryChargeCurrent,
|
HorizonOCConfigValue_BatteryChargeCurrent,
|
||||||
|
|
||||||
HorizonOCConfigValue_OverwriteRefreshRate,
|
HorizonOCConfigValue_OverwriteRefreshRate,
|
||||||
@@ -61,8 +59,6 @@ typedef enum {
|
|||||||
HorizonOCConfigValue_DVFSMode,
|
HorizonOCConfigValue_DVFSMode,
|
||||||
HorizonOCConfigValue_DVFSOffset,
|
HorizonOCConfigValue_DVFSOffset,
|
||||||
|
|
||||||
HocClkConfigValue_FixCpuVoltBug,
|
|
||||||
|
|
||||||
KipConfigValue_custRev,
|
KipConfigValue_custRev,
|
||||||
// KipConfigValue_mtcConf,
|
// KipConfigValue_mtcConf,
|
||||||
KipConfigValue_hpMode,
|
KipConfigValue_hpMode,
|
||||||
@@ -215,18 +211,12 @@ static inline const char* sysclkFormatConfigValue(SysClkConfigValue val, bool pr
|
|||||||
case HocClkConfigValue_LiteTDPLimit:
|
case HocClkConfigValue_LiteTDPLimit:
|
||||||
return pretty ? "Handheld TDP Limit" : "tdp_limit_l";
|
return pretty ? "Handheld TDP Limit" : "tdp_limit_l";
|
||||||
|
|
||||||
case HocClkConfigValue_EnforceBoardLimit:
|
|
||||||
return pretty ? "Enforce Board Limit" : "enforce_board_limit";
|
|
||||||
|
|
||||||
case HorizonOCConfigValue_BatteryChargeCurrent:
|
case HorizonOCConfigValue_BatteryChargeCurrent:
|
||||||
return pretty ? "Battery Charge Current" : "bat_charge_current";
|
return pretty ? "Battery Charge Current" : "bat_charge_current";
|
||||||
|
|
||||||
case HorizonOCConfigValue_OverwriteRefreshRate:
|
case HorizonOCConfigValue_OverwriteRefreshRate:
|
||||||
return pretty ? "Display Refresh Rate Changing" : "drr_changing";
|
return pretty ? "Display Refresh Rate Changing" : "drr_changing";
|
||||||
|
|
||||||
case HocClkConfigValue_FixCpuVoltBug:
|
|
||||||
return pretty ? "Fix CPU Volt Bug" : "cpu_volt_bugfix";
|
|
||||||
|
|
||||||
case HorizonOCConfigValue_EnableUnsafeDisplayFreqs:
|
case HorizonOCConfigValue_EnableUnsafeDisplayFreqs:
|
||||||
return pretty ? "Enable Unsafe Display Frequencies" : "drr_unsafe";
|
return pretty ? "Enable Unsafe Display Frequencies" : "drr_unsafe";
|
||||||
|
|
||||||
@@ -418,8 +408,6 @@ static inline uint64_t sysclkDefaultConfigValue(SysClkConfigValue val)
|
|||||||
|
|
||||||
case HocClkConfigValue_ThermalThrottle:
|
case HocClkConfigValue_ThermalThrottle:
|
||||||
case HocClkConfigValue_HandheldTDP:
|
case HocClkConfigValue_HandheldTDP:
|
||||||
case HocClkConfigValue_EnforceBoardLimit:
|
|
||||||
case HocClkConfigValue_FixCpuVoltBug:
|
|
||||||
case HocClkConfigValue_IsFirstLoad:
|
case HocClkConfigValue_IsFirstLoad:
|
||||||
case HorizonOCConfigValue_DVFSMode:
|
case HorizonOCConfigValue_DVFSMode:
|
||||||
return 1ULL;
|
return 1ULL;
|
||||||
@@ -454,9 +442,7 @@ static inline uint64_t sysclkValidConfigValue(SysClkConfigValue val, uint64_t in
|
|||||||
case HocClkConfigValue_OverwriteBoostMode:
|
case HocClkConfigValue_OverwriteBoostMode:
|
||||||
case HocClkConfigValue_ThermalThrottle:
|
case HocClkConfigValue_ThermalThrottle:
|
||||||
case HocClkConfigValue_HandheldTDP:
|
case HocClkConfigValue_HandheldTDP:
|
||||||
case HocClkConfigValue_EnforceBoardLimit:
|
|
||||||
case HorizonOCConfigValue_OverwriteRefreshRate:
|
case HorizonOCConfigValue_OverwriteRefreshRate:
|
||||||
case HocClkConfigValue_FixCpuVoltBug:
|
|
||||||
case HorizonOCConfigValue_EnableUnsafeDisplayFreqs:
|
case HorizonOCConfigValue_EnableUnsafeDisplayFreqs:
|
||||||
case HocClkConfigValue_IsFirstLoad:
|
case HocClkConfigValue_IsFirstLoad:
|
||||||
return (input & 0x1) == input;
|
return (input & 0x1) == input;
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ void MiscGui::listUI()
|
|||||||
addConfigToggle(HocClkConfigValue_OverwriteBoostMode, nullptr);
|
addConfigToggle(HocClkConfigValue_OverwriteBoostMode, nullptr);
|
||||||
addConfigToggle(HocClkConfigValue_ThermalThrottle, nullptr);
|
addConfigToggle(HocClkConfigValue_ThermalThrottle, nullptr);
|
||||||
addConfigToggle(HocClkConfigValue_HandheldTDP, nullptr);
|
addConfigToggle(HocClkConfigValue_HandheldTDP, nullptr);
|
||||||
addConfigToggle(HocClkConfigValue_EnforceBoardLimit, nullptr);
|
// addConfigToggle(HocClkConfigValue_EnforceBoardLimit, nullptr);
|
||||||
|
|
||||||
#if IS_MINIMAL == 0
|
#if IS_MINIMAL == 0
|
||||||
std::map<uint32_t, std::string> labels_pwr_l = {
|
std::map<uint32_t, std::string> labels_pwr_l = {
|
||||||
|
|||||||
@@ -434,12 +434,12 @@ void ClockManager::Tick()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this->config->GetConfigValue(HocClkConfigValue_EnforceBoardLimit) && opMode == AppletOperationMode_Console ) {
|
// if(this->config->GetConfigValue(HocClkConfigValue_EnforceBoardLimit) && opMode == AppletOperationMode_Console ) {
|
||||||
if(Board::GetPowerMw(SysClkPowerSensor_Now) < 0) {
|
// if(Board::GetPowerMw(SysClkPowerSensor_Now) < 0) {
|
||||||
ResetToStockClocks();
|
// ResetToStockClocks();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
if(((tmp451TempSoc() / 1000) > (int)this->config->GetConfigValue(HocClkConfigValue_ThermalThrottleThreshold)) && this->config->GetConfigValue(HocClkConfigValue_ThermalThrottle)) {
|
if(((tmp451TempSoc() / 1000) > (int)this->config->GetConfigValue(HocClkConfigValue_ThermalThrottleThreshold)) && this->config->GetConfigValue(HocClkConfigValue_ThermalThrottle)) {
|
||||||
ResetToStockClocks();
|
ResetToStockClocks();
|
||||||
|
|||||||
Reference in New Issue
Block a user