power: introduce transition cancelling 26/287126/5
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 01:42:10 +0000 (10:42 +0900)
commitc8efbe613002db27419227ed5e94a090439b2457
tree8add26672522caa5d35f9088136eb6efaac90f56
parentf4c85c4f9c58e6d944bdce74308c4568efc1d1a3
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