From: Youngjae Cho Date: Wed, 8 Feb 2023 09:50:34 +0000 (+0900) Subject: power: add transient scenario from START to SLEEP X-Git-Tag: accepted/tizen/unified/20230215.100730~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=971493207a7ba5f643afcd5d11eb7acc3f9d3759;p=platform%2Fcore%2Fsystem%2Fdeviced.git power: add transient scenario from START to SLEEP Transient scenario for suspending from START to SLEEP has been added. DEVICED_POWER_STATE_START | V DEVICED_POWER_TRANSIENT_STATE_SUSPENDING_EARLY | V DEVICED_POWER_TRANSIENT_STATE_SUSPENDING | V DEVICED_POWER_TRANSIENT_STATE_SUSPENDING_LATE | V DEVICED_POWER_STATE_SLEEP Change-Id: I814defb0245e94302746918fa5392ed3a08c64b3 Signed-off-by: Youngjae Cho --- diff --git a/src/power/power.c b/src/power/power.c index 8bd0b28..58a1e83 100644 --- a/src/power/power.c +++ b/src/power/power.c @@ -90,6 +90,10 @@ static const struct { int max_step; const uint64_t *scenario; } transient[DEVICED_POWER_STATE_MAX_INDEX][DEVICED_POWER_STATE_MAX_INDEX] = { + [DEVICED_POWER_STATE_START_INDEX][DEVICED_POWER_STATE_SLEEP_INDEX] = { + .max_step = ARRAY_SIZE(transient_scenario_suspending), + .scenario = transient_scenario_suspending, + }, [DEVICED_POWER_STATE_NORMAL_INDEX][DEVICED_POWER_STATE_SLEEP_INDEX] = { .max_step = ARRAY_SIZE(transient_scenario_suspending), .scenario = transient_scenario_suspending,