> On Tue, 10 Aug 2010, Paul E. McKenney wrote:
>
> >Subject: Re: Attempted summary of suspend-blockers LKML thread, take three
> >
> >On Tue, Aug 10, 2010 at 06:28:39PM -0700,
david@lang.hm wrote:
> >>On Tue, 10 Aug 2010, Paul E. McKenney wrote:
> >>
> >>>On Tue, Aug 10, 2010 at 09:38:49AM +0100, Alan Cox wrote:
> >>>>>situation you call out can occur with manual suspend-to-RAM already:
> >>>>>the fact is that this is a design choice. You could indeed make a
> >>>>
> >>>>Losing data is a design choice ? The application set a timer, the OS
> >>>>shouldn't be ignoring it in that situation. It might want to delay it, it
> >>>>might want to warn the user its hogging things it shouldnt (powertop,
> >>>>battery usage monitors in Android etc)
> >>>
> >>>Hmmm... Let's put the two approaches side by side so that we can compare
> >>>them more easily:
> >>>
> >>> Opportunistic Suspend Idle + Timer Jitter
> >>>
> >>> Set timer Set timer
> >>> Suspend OS delays timer
> >>> Resume OS continues delaying timer
> >>> Timer fires Timer fires
> >>>
> >>>These two cases look quite similar to me.
> >>>
> >>>But as you say, the battery can run out. So let's add that to the
> >>>comparison:
> >>>
> >>> Opportunistic Suspend Idle + Timer Jitter
> >>>
> >>> Set timer Set timer
> >>> Suspend OS delays timer
> >>> Battery runs out Battery runs out
> >>> Data loss Data loss
> >>>
> >>>The two cases still look quite similar. You might note, quite correctly,
> >>>that the time between suspend and resume might be quite a bit longer than
> >>>the typical time that the OS delays a timer. But the power consumption
> >>>on some platforms is quite a bit lower in the suspend case than it is
> >>>in the delayed-timer case.
> >>
> >>it has been stated that the android can hit the exact same power
> >>state either with sleep or suspend, and that the same clock can wake
> >>it up (it appears as a timer expiring for sleep, or an alarm for
> >>suspend, but it's the same clock firing the signal)
> >>
> >>so in at least some cases the hardware supports doing both with
> >>equal efficiency.
> >
> >It indeed has been so stated. But in this section we were discussing
> >data loss, not hardware power-state capabilities.
>
> you specifically stated that suspend would use less power. I am
> pointing out that ther is info posed in this thread to say that's
> not always the case.