On Thu, Sep 4, 2014 at 9:37 AM, Tc, Jenny <jenny...@intel.com> 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/