diff options
author | Dmitry Osipenko <[email protected]> | 2022-05-10 02:32:15 +0300 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2022-05-19 19:30:30 +0200 |
commit | 0e2110d2e910e44cc7cf23fce14613e232602602 (patch) | |
tree | d736c3c83351798e73fb3b00aa28210fb91e9ce2 /lib/netdev-notifier-error-inject.c | |
parent | 5d34b41aa420c3908793b43419a1097362ca2668 (diff) |
kernel/reboot: Add kernel_can_power_off()
Add kernel_can_power_off() helper that replaces open-coded checks of
the global pm_power_off variable. This is a necessary step towards
supporting chained power-off handlers.
Signed-off-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions