[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Sep 2014 14:53:49 -0700
From: Todd Poynor <toddpoynor@...gle.com>
To: "Tc, Jenny" <jenny.tc@...el.com>
Cc: Viresh Kumar <viresh.kumar@...aro.org>,
Zoran Markovic <zrn.markovic@...il.com>,
Anton Vorontsov <anton@...msg.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
David Woodhouse <dwmw2@...radead.org>,
Arve Hjonnevag <arve@...roid.com>,
John Stultz <john.stultz@...aro.org>,
Ruchi Kandoi <kandoiruchi@...gle.com>
Subject: Re: [RFC PATCH] pm: prevent suspend until power supply events are processed
On Thu, Sep 4, 2014 at 9:37 AM, Tc, Jenny <jenny.tc@...el.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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists