[PATCH v1 0/2] PM: suspend: Fix pm_suspend_target_state usage and logging

Zihuan Zhang posted 2 patches 6 months, 2 weeks ago
kernel/power/suspend.c | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
[PATCH v1 0/2] PM: suspend: Fix pm_suspend_target_state usage and logging
Posted by Zihuan Zhang 6 months, 2 weeks ago
1. Ensure early debug logs referencing pm_suspend_target_state are valid by assigning it earlier.
2. Simplify state checking logic using sleep_state_supported().

Patch 1 is a logging fix, patch 2 is a logic simplification.
All patches are small and localized in kernel/power/suspend.c. 

Zihuan Zhang (2):
  PM: suspend: assign pm_suspend_target_state earlier for valid debug
    logs
  PM: suspend: simplify state check using sleep_state_supported()

 kernel/power/suspend.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

-- 
2.25.1