power: introduce transition cancelling 51/287851/1
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 20 Jan 2023 06:25:07 +0000 (15:25 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 7 Feb 2023 06:53:24 +0000 (15:53 +0900)
commit5908bbcdc7c798576115f0fd3d00ee6de3bdf0f6
tree8add26672522caa5d35f9088136eb6efaac90f56
parentf0d22450aba5250fc1e8e3154838f0124da1f00c
power: introduce transition cancelling

Cancelling transition reserves a new transition that undoing the ongoing
transition. That is, the power state will return to the previous state
after finishing the ongoing transition. Additionally with that
reservation, it discards all the pending transitions except one that is
to the poweroff/reboot/exit state.

Change-Id: Ib05841fa91162109db1c05b2f5e0a3e7edd3b90c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power-dbus.c
src/power/power.c
src/power/power.h