Thread (58 messages) 58 messages, 6 authors, 2017-07-24

[PATCH v2] PM / suspend: Add suspend_target_state()

From: f.fainelli@gmail.com (Florian Fainelli)
Date: 2017-07-17 21:21:57
Also in: linux-pm, lkml

On 07/17/2017 02:03 PM, Rafael J. Wysocki wrote:
On Mon, Jul 17, 2017 at 10:16 PM, Pavel Machek [off-list ref] wrote:
quoted
Hi!
quoted
Have the core suspend/resume framework store the system-wide suspend
state (suspend_state_t) we are about to enter, and expose it to drivers
via suspend_target_state() in order to retrieve that. The state is
assigned in suspend_devices_and_enter().
Do we really want to have variable + inline functions that just read
that variable?
Florian, Pavel is right, you can simply export the variable.

Anything accessing it should go under CONFIG_PM_SLEEP anyway.
Alright then, I will just export it. Stay tuned.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help