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

Rafael J. Wysocki rafael at kernel.org
Mon Jul 17 14:03:09 PDT 2017


On Mon, Jul 17, 2017 at 10:16 PM, Pavel Machek <pavel at ucw.cz> wrote:
> Hi!
>
>> 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.

Thanks,
Rafael



More information about the linux-arm-kernel mailing list