mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
This also significantly refactors the module in other ways. Instead of polling for changes every second, the power button task sleeps until its next state transition or input. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7508 TEST=manual 1. Reboot EC with lid open. System should NOT power on. 2. Close lid. System should power on. 3. Open lid. System should power on. 4. Press power button. System should power off. For now, EC debug messages should also indicate [PB task wait] only when transitions are taking place; the task function should be sleeping at other times. Change-Id: I86ac420506cebcdf9ca62bdca342e86857d9e242