1 Mar 2009 01:06
Re: [RFD] Automatic suspend
Arve Hjønnevåg <arve <at> android.com>
2009-03-01 00:06:12 GMT
2009-03-01 00:06:12 GMT
On Sat, Feb 28, 2009 at 2:53 PM, Rafael J. Wysocki <rjw <at> sisk.pl> wrote: >> >> What you are talking about here is mostly an optimization of the >> >> wakelock api. You have removed timeout support and made each wakelock >> >> reference counted. >> > >> > I also removed the arbitrary number of wakelocks (I really _hate_ the name, >> > can we please stop using it from now on?). >> >> What do you mean by this? You removed the struct wake_lock? > > Basically, yes. Why is this better? If you move the stats into devices and tasks, this may take up more space than adding an object to the structures or tasks that you are protecting. >> >> I do provide an option to turn off the wakelock stats, which makes >> >> wake_lock/unlock significantly faster, but we never run with wakelock >> >> stats off. Also, it pushes timeout handling to the drivers. I know may >> >> of you don't like timeout support, but ignoring the problem is not a >> >> solution. If each driver that needs timeouts uses its own timer, then >> >> you will often wakeup from idle just to unlock a wakelock that will >> >> not trigger suspend. This wakeup is a thousand times as costly on the >> >> msm platform as a wakelock/unlock pair (with wakelock stats enabled). >> > >> > Well, at least a couple of people told you that the timeouts are hardly >> > acceptable and they told you why. Please stop repeating the same arguments you >> > have given already for a couple of times. They're not convincing. >> >> And you keep ignoring them.(Continue reading)
RSS Feed