add back delay
This commit is contained in:
1 parent
2c4020e71f
commit
e28d7d1206
1 file changed
+5
-3
@@ -656,9 +656,11 @@ namespace board {
|
|||||||
/* TODO: Dynamically get this from the PCV LUT? */
|
/* TODO: Dynamically get this from the PCV LUT? */
|
||||||
void UnstuckFreqWar() {
|
void UnstuckFreqWar() {
|
||||||
u32 hz = board::GetHz(HocClkModule_CPU);
|
u32 hz = board::GetHz(HocClkModule_CPU);
|
||||||
/* Voltage needs to be above the forced minimum voltage, so we set max for a short time. */
|
/* Voltage needs to be above the forced minimum voltage, so we set a high frequency (will be capped by pcv) for a short time. */
|
||||||
/* This frequency is only applied for ~250ms. */
|
/* This frequency is only applied for ~255ms. */
|
||||||
board::SetHz(HocClkModule_CPU, ~0);
|
constexpr u32 HighFreqVoltBump = 2091'000'000;
|
||||||
|
board::SetHz(HocClkModule_CPU, HighFreqVoltBump);
|
||||||
|
svcSleepThread(5'000'000);
|
||||||
board::SetHz(HocClkModule_CPU, hz);
|
board::SetHz(HocClkModule_CPU, hz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user