diff options
| author | 2025-02-18 21:11:42 +0100 | |
|---|---|---|
| committer | 2025-02-18 21:43:06 +0100 | |
| commit | 3e5eee147b7b0f5a93f56beffe34e81fdd00fa0d (patch) | |
| tree | c96640185cb1262bba5874f5f0e0cc5920074f48 /include/linux/pm.h | |
| parent | Merge branch 'pm-runtime' (diff) | |
| download | wireguard-linux-3e5eee147b7b0f5a93f56beffe34e81fdd00fa0d.tar.xz wireguard-linux-3e5eee147b7b0f5a93f56beffe34e81fdd00fa0d.zip | |
PM: Block enabling of runtime PM during system suspend
If device_prepare() runs on a device that has never had runtime
PM enabled so far, it may reasonably assume that runtime PM will
not be enabled for that device during the system suspend-resume
cycle currently in progress, but this has never been guaranteed.
To verify this assumption, make device_prepare() arrange for
triggering a device warning accompanied by a call trace dump if
runtime PM is enabled for such a device after it has returned.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/6131109.lOV4Wx5bFT@rjwysocki.net
Diffstat (limited to 'include/linux/pm.h')
| -rw-r--r-- | include/linux/pm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index 78855d794342..6ca6f34c58c3 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -597,6 +597,7 @@ enum rpm_status { RPM_RESUMING, RPM_SUSPENDED, RPM_SUSPENDING, + RPM_BLOCKED, }; /* |
