Re: [RFC PATCH] pm: prevent suspend until power supply events are processed

From: Todd Poynor
Date: Tue Sep 09 2014 - 17:53:55 EST


On Thu, Sep 4, 2014 at 9:37 AM, Tc, Jenny <jenny.tc@xxxxxxxxx> wrote:
> If the intention is to prevent suspend while processing the power supply uevents,
> Isn't it a good option to use EPOLLWAKEUP? In Android, it's already used by
> healthd to achieve the same.

It's a good idea for the userspace handler of the power_supply uevents
to use EPOLLWAKEUP. This patch will help ensure the system remains
awake until uevent dispatching grabs its wakelock, and then the
userspace receiver can take over preventing suspend via EPOLLWAKEUP.


Todd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/