zephyr/tests/subsys/pm
Roman Dobrodii 2f0ce5a3e8 tests/subsys/pm/power_mgmt_soc: fix various bugs
- Reduce "extra" added latency when trying to enter light
  sleep from 500ms to 50us, since light sleep states
  (e.g. "WFI idle") usually have microsecond-range residency
  times.
- Keep "extra" latency when entering deep sleep the same at
  1100ms (as we're trying to enter the deepest sleep state
  available, it doesn't hurt).
- Replace k_uptime_delta() with manual subtraction since
  k_uptime_delta() updates starting timestamp which leads to
  incorrect timing measurement when k_uptime_delta() is
  called for the second time.
- Measuring PM sleep entry latency using pm_notifier entry
  callback, do it only for the first PM entry event after
  calling k_usleep(), as during the sleep PM entry & exit
  may happen multiple times and that is normal.

Signed-off-by: Roman Dobrodii <rdobrodii@antmicro.com>
2023-04-19 17:12:42 +02:00
..
device_power_domains
device_runtime_api device: remove redundant init functions 2023-04-19 10:00:25 +02:00
device_wakeup_api
policy_api
power_domain device: remove redundant init functions 2023-04-19 10:00:25 +02:00
power_mgmt device: remove redundant init functions 2023-04-19 10:00:25 +02:00
power_mgmt_multicore
power_mgmt_soc tests/subsys/pm/power_mgmt_soc: fix various bugs 2023-04-19 17:12:42 +02:00
power_states_api