mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-24 16:27:42 +01:00
repaired taking C3Latency from config
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
cc561f87d1
commit
f424a77c25
@ -417,7 +417,8 @@ void afterGetUserSettings(SETTINGS_DATA& settingsData)
|
||||
GlobalConfig.EnableC6 = settingsData.getEnableC6();
|
||||
GlobalConfig.EnableC4 = settingsData.getEnableC4();
|
||||
GlobalConfig.EnableC2 = settingsData.getEnableC2();
|
||||
GlobalConfig.C3Latency = settingsData.getEnableC6();
|
||||
// GlobalConfig.C3Latency = settingsData.getC3Latency();
|
||||
// DBG("4: GlobalConfig.C3Latency=%x\n", GlobalConfig.C3Latency);
|
||||
|
||||
if (settingsData.CPU.HWPEnable && (gCPUStructure.Model >= CPU_MODEL_SKYLAKE_U)) {
|
||||
GlobalConfig.HWP = TRUE;
|
||||
|
@ -2684,7 +2684,7 @@ printf("%s", "");
|
||||
return ACPI.SSDT._EnableC2;
|
||||
}
|
||||
bool getC3Latency() const {
|
||||
if ( CPU._C3Latency.isDefined() ) return CPU._C3Latency.value();
|
||||
// if ( CPU._C3Latency.isDefined() ) return CPU._C3Latency.value();
|
||||
return ACPI.SSDT._C3Latency;
|
||||
}
|
||||
|
||||
|
@ -735,8 +735,10 @@ void ConfigManager::applySettings() const
|
||||
if ( !configPlist.ACPI.SSDT.getMinMultiplier().isDefined() )
|
||||
gSettings.ACPI.SSDT.MinMultiplier = 7;
|
||||
}
|
||||
// DBG("2: GlobalConfig.C3Latency=%x\n", GlobalConfig.C3Latency);
|
||||
if ( !configPlist.ACPI.SSDT.getC3Latency().isDefined() )
|
||||
gSettings.ACPI.SSDT._C3Latency = 0x00FA;
|
||||
// DBG("2: gSettings.ACPI.SSDT._C3Latency=%x\n", gSettings.ACPI.SSDT._C3Latency);
|
||||
}
|
||||
//gSettings.CPU.Turbo = gCPUStructure.Turbo;
|
||||
gSettings.CPU.SavingMode = 0xFF; //means not set
|
||||
|
@ -2434,7 +2434,7 @@ void SetVariablesFromNvram()
|
||||
}
|
||||
|
||||
void
|
||||
GetListOfConfigs ()
|
||||
GetListOfConfigs()
|
||||
{
|
||||
REFIT_DIR_ITER DirIter;
|
||||
EFI_FILE_INFO *DirEntry;
|
||||
@ -2877,7 +2877,7 @@ RefitMain (IN EFI_HANDLE ImageHandle,
|
||||
DBG("SimpleTextEx Status=%s\n", efiStrError(Status));
|
||||
|
||||
gConf.InitialisePlatform();
|
||||
|
||||
// DBG("5: GlobalConfig.C3Latency=%x\n", GlobalConfig.C3Latency);
|
||||
/*
|
||||
* saving debug.log works from here
|
||||
*/
|
||||
@ -2954,7 +2954,8 @@ RefitMain (IN EFI_HANDLE ImageHandle,
|
||||
GetListOfThemes();
|
||||
GetListOfConfigs();
|
||||
}
|
||||
|
||||
// DBG("0: GlobalConfig.C3Latency=%x\n", gSettings.ACPI.SSDT._C3Latency);
|
||||
GlobalConfig.C3Latency = gSettings.ACPI.SSDT._C3Latency;
|
||||
// ThemeX.FillByEmbedded(); //init XTheme before EarlyUserSettings
|
||||
{
|
||||
void *Value = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user