Skip to content

Commit

Permalink
change defaults for SSDT generation because it is done before
Browse files Browse the repository at this point in the history
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
  • Loading branch information
SergeySlice committed Feb 11, 2021
1 parent 8209394 commit 9319641
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rEFIt_UEFI/Platform/Settings.cpp
Expand Up @@ -3752,12 +3752,13 @@ static void getACPISettings(const TagDict *CfgDict)

} else if (Prop2->isDict()) {
const TagStruct* Prop = Prop2->getDict()->propertyForKey("PStates");
gSettings.ACPI.SSDT.Generate.GeneratePStates = IsPropertyNotNullAndTrue(Prop);
gSettings.ACPI.SSDT.Generate.GenerateAPSN = gSettings.ACPI.SSDT.Generate.GeneratePStates;
gSettings.ACPI.SSDT.Generate.GenerateAPLF = gSettings.ACPI.SSDT.Generate.GeneratePStates;
gSettings.ACPI.SSDT.Generate.GeneratePluginType = gSettings.ACPI.SSDT.Generate.GeneratePStates;
if (Prop) {
gSettings.ACPI.SSDT.Generate.GeneratePStates = IsPropertyNotNullAndTrue(Prop);
}
Prop = Prop2->getDict()->propertyForKey("CStates");
gSettings.ACPI.SSDT.Generate.GenerateCStates = IsPropertyNotNullAndTrue(Prop);
if (Prop) {
gSettings.ACPI.SSDT.Generate.GenerateCStates = IsPropertyNotNullAndTrue(Prop);
}
Prop = Prop2->getDict()->propertyForKey("APSN");
if (Prop) {
gSettings.ACPI.SSDT.Generate.GenerateAPSN = IsPropertyNotNullAndTrue(Prop);
Expand Down

0 comments on commit 9319641

Please sign in to comment.