ACPI S3: Replace acpi_is_wakeup()
It was supposed to return true for both S2 and S3, but level S2 was never stored in acpi_slp_type or otherwise implemented. Change-Id: Ida0165e647545069c0d42d38b9f45a95e78dacbe Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47693 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Felix Held
parent
67a2507c78
commit
b8c7ea0f69
@@ -52,7 +52,7 @@ static void model_14_init(struct device *dev)
|
||||
msr.lo |= SYSCFG_MSR_MtrrFixDramEn;
|
||||
wrmsr(SYSCFG_MSR, msr);
|
||||
|
||||
if (acpi_is_wakeup())
|
||||
if (acpi_is_wakeup_s3())
|
||||
restore_mtrr();
|
||||
|
||||
x86_mtrr_check();
|
||||
|
@@ -51,7 +51,7 @@ static void model_15_init(struct device *dev)
|
||||
msr.lo |= SYSCFG_MSR_MtrrFixDramEn;
|
||||
wrmsr(SYSCFG_MSR, msr);
|
||||
|
||||
if (acpi_is_wakeup())
|
||||
if (acpi_is_wakeup_s3())
|
||||
restore_mtrr();
|
||||
|
||||
x86_mtrr_check();
|
||||
|
@@ -49,7 +49,7 @@ static void model_16_init(struct device *dev)
|
||||
msr.lo |= SYSCFG_MSR_MtrrFixDramEn;
|
||||
wrmsr(SYSCFG_MSR, msr);
|
||||
|
||||
if (acpi_is_wakeup())
|
||||
if (acpi_is_wakeup_s3())
|
||||
restore_mtrr();
|
||||
|
||||
x86_mtrr_check();
|
||||
|
Reference in New Issue
Block a user