power: rework sleep-wait 07/267707/5
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 9 Dec 2021 04:21:05 +0000 (13:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 9 Dec 2021 06:55:00 +0000 (15:55 +0900)
commitf0e7125bb2dd76eae45e5679332734be694c5efb
tree00adf534612ab65467658f2573d84f3feb1696c5
parent1b030decd5c755eda030a4705f1d3ffbf7c0f2c4
power: rework sleep-wait

The sleep-wait now works based on a single list. Whenever entering
to PSM_SLEEP, all sleep-waits, which had been registered by processes
through device API, will be added to the list waiting for confirmation.

Change-Id: Iebb1b177914847ee9c38ce8bf5fc01bb70d1f3c6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/iot-headless/power/power-state-manager.c
plugins/iot-headless/power/sleep-wait.c
plugins/iot-headless/power/sleep-wait.h