Commit 0f5cfa9f authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

tests: power_states_api: Test exit-latency-us



Test exit-latency-us property on power API test.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 41faae4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14,12 +14,14 @@
		compatible = "zephyr,power-state";
		power-state-name = "suspend-to-idle";
		min-residency-us = <10000>;
		exit-latency-us = <100>;
	};

	state1: state1 {
		compatible = "zephyr,power-state";
		power-state-name = "suspend-to-ram";
		min-residency-us = <50000>;
		exit-latency-us = <500>;
	};

	state2: state2 {
+2 −2
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@
/* Last state has not declared a minimum residency, so it should be
 * set the default 0 value
 */
static struct pm_state_info infos[] = {{PM_STATE_SUSPEND_TO_IDLE, 0, 10000},
		{PM_STATE_SUSPEND_TO_RAM, 0, 50000}, {PM_STATE_STANDBY, 0, 0}};
static struct pm_state_info infos[] = {{PM_STATE_SUSPEND_TO_IDLE, 0, 10000, 100},
	       {PM_STATE_SUSPEND_TO_RAM, 0, 50000, 500}, {PM_STATE_STANDBY, 0, 0}};
static enum pm_state states[] = {PM_STATE_SUSPEND_TO_IDLE,
			PM_STATE_SUSPEND_TO_RAM, PM_STATE_STANDBY};
static enum pm_state wrong_states[] = {PM_STATE_SUSPEND_TO_DISK,