public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Raj Kumar <rajkumar278@hotmail.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: Question about timers during system suspend
Date: Wed, 5 Jan 2011 00:05:42 +0100	[thread overview]
Message-ID: <201101050005.42914.rjw@sisk.pl> (raw)
In-Reply-To: <BLU102-W26157F65094C5BCB0C51ADEB080@phx.gbl>

On Tuesday, January 04, 2011, Raj Kumar wrote:
> 
> Hi,

Hi,

> I have question regarding the timers during system suspend. If a software timer is
> active in device driver, will this timer be stopped during system suspend?

What do you mean by "stopped"?  Do you mean canceled?

> If the timer is active, will it prevent the system from full suspend?

No, it won't.

> The another thing is during system suspend, how the user space code know about suspend?

It doesn't, unless it's notified by the user space process initiating suspend.

> One way is that device driver gets the suspend and it notifies the user space. 

That doesn't work, because user space is frozen when drivers' suspend routines
are being called.  It might work if the driver in question registered a power
management notifier and sent a notification to user space from there.

> But is there way that during system goes into full suspend, is any user space component that will
> give notifications to applications that has registered for system suspend transition?

That depends on the configuration of user space.  pm-utils can do that for one
example.

Thanks,
Rafael

  reply	other threads:[~2011-01-04 23:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-04 21:14 Question about timers during system suspend Raj Kumar
2011-01-04 23:05 ` Rafael J. Wysocki [this message]
2011-01-04 23:57   ` Raj Kumar
2011-01-05  8:27     ` Rafael J. Wysocki
2011-03-18 13:45       ` Question about hibernation Raj Kumar
2011-03-18 14:09         ` Oliver Neukum
2011-03-19 23:47           ` Raj Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201101050005.42914.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rajkumar278@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox