change defaults for SSDT generation because it is done before

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2021-02-11 22:27:03 +03:00
parent 8209394af9
commit 93196411ad

View File

@ -3752,12 +3752,13 @@ static void getACPISettings(const TagDict *CfgDict)
} else if (Prop2->isDict()) { } else if (Prop2->isDict()) {
const TagStruct* Prop = Prop2->getDict()->propertyForKey("PStates"); const TagStruct* Prop = Prop2->getDict()->propertyForKey("PStates");
gSettings.ACPI.SSDT.Generate.GeneratePStates = IsPropertyNotNullAndTrue(Prop); if (Prop) {
gSettings.ACPI.SSDT.Generate.GenerateAPSN = gSettings.ACPI.SSDT.Generate.GeneratePStates; gSettings.ACPI.SSDT.Generate.GeneratePStates = IsPropertyNotNullAndTrue(Prop);
gSettings.ACPI.SSDT.Generate.GenerateAPLF = gSettings.ACPI.SSDT.Generate.GeneratePStates; }
gSettings.ACPI.SSDT.Generate.GeneratePluginType = gSettings.ACPI.SSDT.Generate.GeneratePStates;
Prop = Prop2->getDict()->propertyForKey("CStates"); 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"); Prop = Prop2->getDict()->propertyForKey("APSN");
if (Prop) { if (Prop) {
gSettings.ACPI.SSDT.Generate.GenerateAPSN = IsPropertyNotNullAndTrue(Prop); gSettings.ACPI.SSDT.Generate.GenerateAPSN = IsPropertyNotNullAndTrue(Prop);