power: introduce eventlock for iot-headless 56/268956/8
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 5 Jan 2022 07:44:15 +0000 (16:44 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Thu, 6 Jan 2022 05:33:15 +0000 (05:33 +0000)
commitbeca677ef6aa79e84915ff7ee12811faf5fff313
tree08d748636337f0f7ccd8b2702a455906d517b020
parent8e0c7aa7408802684ff9ddce371159858bae3339
power: introduce eventlock for iot-headless

eventlock is another wakelock for guaranteeing subroutine of an event
not to go to sleep regardless of power state. Therefore, the eventlock
works independently of mainlock, which is affected by power state.
The previous templock, which was for key event, has changed to eventlock.

Change-Id: Ie6ac4cf2de6989845b2e64eefe06002147736da2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/iot-headless/power/power-event-lock.c [new file with mode: 0644]
plugins/iot-headless/power/power-event-lock.h [new file with mode: 0644]
plugins/iot-headless/power/power-state-manager.c