governor configuration options + gm20b driver fixes
This commit is contained in:
1 parent
01d85ca9ff
commit
9c892ee365
5 files changed
+87
-12
No files matched your search
@@ -134,8 +134,9 @@ namespace board {
|
||||
HandleCpuUv();
|
||||
}
|
||||
if (useGm20b) {
|
||||
gm20b::setClock(hz / 1000);
|
||||
currentInjectedHz = hz;
|
||||
if (gm20b::setClock(hz / 1000)) {
|
||||
currentInjectedHz = hz;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +154,11 @@ namespace board {
|
||||
}
|
||||
|
||||
if (module == HocClkModule_GPU && currentInjectedHz != 0) {
|
||||
return currentInjectedHz;
|
||||
if (GetRealHz(HocClkModule_GPU) != currentInjectedHz) {
|
||||
currentInjectedHz = 0;
|
||||
} else {
|
||||
return currentInjectedHz;
|
||||
}
|
||||
}
|
||||
|
||||
if (HOSSVC_HAS_CLKRST) {
|
||||
|
||||
Reference in new issue
Block a user