Misc3: Add missing ram load

This commit is contained in:
Lightos1
2026-03-08 13:27:36 +01:00
committed by GitHub
parent 3fa2cfabd3
commit bde65f094d

View File

@@ -685,7 +685,7 @@ void Misc2(void*) {
void Misc3(void*) { void Misc3(void*) {
const bool isUsingEOS = usingEOS(); const bool isUsingEOS = usingEOS();
// Initialize voltage reading if needed // Initialize voltage reading if needed
bool canReadVoltages = false; bool canReadVoltages = false;
if (!isUsingEOS && realVoltsPolling) { if (!isUsingEOS && realVoltsPolling) {
@@ -694,7 +694,7 @@ void Misc3(void*) {
realVoltsPolling = false; realVoltsPolling = false;
} }
} }
do { do {
mutexLock(&mutex_Misc); mutexLock(&mutex_Misc);
@@ -706,7 +706,7 @@ void Misc3(void*) {
if (R_SUCCEEDED(tcCheck)) { if (R_SUCCEEDED(tcCheck)) {
tcGetSkinTemperatureMilliC(&skin_temperaturemiliC); tcGetSkinTemperatureMilliC(&skin_temperaturemiliC);
} }
// Fan // Fan
if (R_SUCCEEDED(pwmCheck)) { if (R_SUCCEEDED(pwmCheck)) {
double temp = 0; double temp = 0;
@@ -720,16 +720,21 @@ void Misc3(void*) {
} }
} }
} }
// GPU Load // GPU Load
if (R_SUCCEEDED(nvCheck)) { if (R_SUCCEEDED(nvCheck)) {
nvIoctl(fd, NVGPU_GPU_IOCTL_PMU_GET_GPU_LOAD, &GPU_Load_u); nvIoctl(fd, NVGPU_GPU_IOCTL_PMU_GET_GPU_LOAD, &GPU_Load_u);
} }
SysClkContext sysclkCTX;
if (R_SUCCEEDED(sysclkIpcGetCurrentContext(&sysclkCTX))) {
partLoad[SysClkPartLoad_EMC] = sysclkCTX.partLoad[SysClkPartLoad_EMC];
}
mutexUnlock(&mutex_Misc); mutexUnlock(&mutex_Misc);
} while (!leventWait(&threadexit, 1'000'000'000)); // 1 second timeout } while (!leventWait(&threadexit, 1'000'000'000)); // 1 second timeout
// Cleanup voltage reading if initialized // Cleanup voltage reading if initialized
if (canReadVoltages) { if (canReadVoltages) {
rgltrExit(); rgltrExit();
@@ -2453,4 +2458,4 @@ ALWAYS_INLINE void GetConfigSettings(ResolutionSettings* settings) {
convertToUpper(key); convertToUpper(key);
settings->disableScreenshots = (key != "FALSE"); settings->disableScreenshots = (key != "FALSE");
} }
} }