zephyr/subsys/power
Benjamin Valentin 4dc672fc19 power: don't switch to power modes not enabled in Kconfig
Disable low power/deep sleep modes when they are not enabled in Kconfig.
Otherwise if only low power modes are enabled (but no deep sleep),
Zephyr will try to swich to the lowest power mode (deep sleep) anyway,
only to discover that it's not availiable, resulting in no low power
mode at all being used.

By disabling the modes here if they are not enabled in Kconfig,
policy_residency will switch to the lowest low power mode instead.

Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2019-03-07 07:18:10 -05:00
..
policy power: don't switch to power modes not enabled in Kconfig 2019-03-07 07:18:10 -05:00
CMakeLists.txt power: Do not suspend devices if device PM is not compiled in 2019-02-19 13:25:36 -05:00
device.c drivers: nrf_power_clock: Migrate to DTS. 2019-02-25 17:51:24 +01:00
Kconfig power: Rework OS <-> Application interface 2019-02-19 13:25:36 -05:00
pm_ctrl.c power: Rework OS <-> Application interface 2019-02-19 13:25:36 -05:00
power.c power: Do not suspend devices if device PM is not compiled in 2019-02-19 13:25:36 -05:00
reboot.c power: move reboot.c to subsys/power 2019-01-22 07:45:22 -05:00