Re: non-racy examples, please (was Re: [PATCH 01/13] PM: Add wake lock?api.)

Woodruff, Richard
2009-02-10T12:10:24Z

> From: linux-pm-bounces@lists.linux-foundation.org [mailto:linux-pm-
> bounces@lists.linux-foundation.org] On Behalf Of Pavel Machek
> Sent: Tuesday, February 10, 2009 5:18 AM

> Plus I don't like that any application select-ing on input device can
> prevent system from sleeping. That's quite a unexpected sideeffect.

Not sure this is your point. But when doing PowerTop based debug in our Linux userspace we found several applications using select() (or some variant) with a much short timeout than needed. In effect they were polling and keeping the system alive.

In the cases it was an application in our control we converted it to something sane.

Regards,
Richard W.