• spiiroin's avatar
    [mce-io] Augment resume detection with timerfd source. Fixes JB#43297 · f5e7d2f9
    spiiroin authored
    MCE needs to perform some tasks like rethinking timer expiration when device
    resumes from suspend. The resume detection is built on assumption that some
    input devices will send EV_SYN events on resume. In devices where such events
    are not emitted, on resume tasks can get indefinitely delayed.
    Take advantage on the fact that system time gets updated on resume, and
    use timerfd to trigger resume detection logic whenever system time changes.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
mce.c 25.6 KB