[PATCH v1 0/3] ACPI: PM: s2idle: Tidy up the code and avoid invoking _DSM unnecessarily

From: Rafael J. Wysocki
Date: Thu Oct 09 2025 - 15:28:21 EST


Hi Everyone,

There is an unused function related to s2idle on x86, so drop it (patch [1/3]).

Also, some callback functions used in struct platform_s2idle_ops on x86 can
be made static, so do that (patch [2/3]).

Finally, the evaluation of LPS0 _DSM Function 1 is useless overhead unless
printing PM debug messages has been enabled, so rearrange the code to only
evaluate it when the data produced by it will be used (patch [3/3]).

Please see changelogs of the individual patches for details.

Thanks!