ACPI: Do not singal PRM support if not enabled
mainline inclusion from mainline-v5.14 commit 392ed6a7 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6HNB8 CVE: N/A Intel-SIG: commit 392ed6a7 ACPI: Do not singal PRM support if not enabled. ACPI Platform Runtime Mechanism feature backport. -------------------------------- If the OS confirms PRM (Platform Runtime Mechanism) support through the \_SB._OSC PRM bit, the BIOS may start relying on the presence of PRM support in the OS, so prevent the PRM bit from being set in the \_SB._OSC capabilities bitmask when PRM support is not built in so as to avoid confusing the BIOS in that case. Fixes: 60faa8f1 ("ACPI: Add \_SB._OSC bit for PRM") Signed-off-by:Aubrey Li <aubrey.li@linux.intel.com> [ rjw: Rewrite subject and changelog, replace #ifdef with if (IS_ENABLED()) ] Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by:
Aubrey Li <aubrey.li@linux.intel.com>
Loading
Please sign in to comment