public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Freezer: How to handle timers?
@ 2008-07-20 16:36 Elias Oltmanns
  2008-07-22 14:06 ` Elias Oltmanns
  0 siblings, 1 reply; 3+ messages in thread
From: Elias Oltmanns @ 2008-07-20 16:36 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-kernel

Hi there,

am I right in thinking that timers set by mod_timer() will not fire
once suspend_freeze_processes() has completed? If so, what options do I
have to make sure that either suspending will be delayed until my timer
has expired, or the timeout callback will be called as part of the
suspend sequence even if the timer has not expired yet?

Thanks in advance,

Elias

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Freezer: How to handle timers?
  2008-07-20 16:36 Freezer: How to handle timers? Elias Oltmanns
@ 2008-07-22 14:06 ` Elias Oltmanns
  2008-08-08 21:54   ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Elias Oltmanns @ 2008-07-22 14:06 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: linux-kernel

Elias Oltmanns <eo@nebensachen.de> wrote:
> Hi there,
>
> am I right in thinking that timers set by mod_timer() will not fire
> once suspend_freeze_processes() has completed? If so, what options do I
> have to make sure that either suspending will be delayed until my timer
> has expired, or the timeout callback will be called as part of the
> suspend sequence even if the timer has not expired yet?

Alright, I think I can solve my particular problem quite well by means
of a pm notifier. However, I'm still wondering whether timers really
should be affected by suspend_freeze_processes().

Regards,

Elias

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Freezer: How to handle timers?
  2008-07-22 14:06 ` Elias Oltmanns
@ 2008-08-08 21:54   ` Pavel Machek
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2008-08-08 21:54 UTC (permalink / raw)
  To: Elias Oltmanns; +Cc: Rafael J. Wysocki, linux-kernel

On Tue 2008-07-22 16:06:59, Elias Oltmanns wrote:
> Elias Oltmanns <eo@nebensachen.de> wrote:
> > Hi there,
> >
> > am I right in thinking that timers set by mod_timer() will not fire
> > once suspend_freeze_processes() has completed? If so, what options do I
> > have to make sure that either suspending will be delayed until my timer
> > has expired, or the timeout callback will be called as part of the
> > suspend sequence even if the timer has not expired yet?
> 
> Alright, I think I can solve my particular problem quite well by means
> of a pm notifier. However, I'm still wondering whether timers really
> should be affected by suspend_freeze_processes().

I don't think they are... are they?

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-08 22:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 16:36 Freezer: How to handle timers? Elias Oltmanns
2008-07-22 14:06 ` Elias Oltmanns
2008-08-08 21:54   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox