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

tests: power_states_api: Just use more realistic values



Using more realistic values to avoid confusion and make it clear the
distinction between min-residency-us and other idle properties like
exit-latency-us.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 247ba20f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,13 +13,13 @@
	state0: state0 {
		compatible = "zephyr,power-state";
		power-state-name = "suspend-to-idle";
		min-residency-us = <1>;
		min-residency-us = <10000>;
	};

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

	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, 1},
		{PM_STATE_SUSPEND_TO_RAM, 0, 5}, {PM_STATE_STANDBY, 0, 0}};
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 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,