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: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
247ba20fb4
commit
bae326b95e
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue