public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@sirena.org.uk>
To: Arve Hj?nnev?g <arve@android.com>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Wakeup-events implementation
Date: Wed, 18 Aug 2010 11:32:19 +0100	[thread overview]
Message-ID: <20100818103219.GA10255@sirena.org.uk> (raw)
In-Reply-To: <AANLkTinNHR0ZkzrtD6xuR5fCrY2FBc7apUUAw1tc58pZ@mail.gmail.com>

On Tue, Aug 17, 2010 at 05:40:37PM -0700, Arve Hj?nnev?g wrote:
> 2010/8/17 Rafael J. Wysocki <rjw@sisk.pl>:

> >> On the other hand, a driver generally doesn't
> >> know until a suspend starts whether or not its devices should be
> >> enabled for wakeup.

> Why? How is the driver notified on suspend that it needs to be enabled
> for wakeup.

There's the wakeup API in pm_wakeup.h, plus subsystem specific knowledge
about what sensible defaults for the hardware in much the same way as we
handle what to do when we suspend.

> >> In addition, you retain all these debugging facilities in your
> >> production builds, not just in the debug kernels. ?Doesn't this seem
> >> excessive?

> > It definitely seems so.

> There are two reasons for keeping the debugging facilities in production builds.
> 1. The debugging information is useful for debugging problems in the field.
> 2. We want to test with the same code we ship.

Plus the fact that power usage tends to be very dynamic often with
strong dependencies on usage patterns.  Power usage is something that
end users will want to debug as well as developers, though most likely
not in the same detail.

  reply	other threads:[~2010-08-18 10:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTimgJUAW9TU37XE4BqYWf3yCWvg-vgk3E0YLqcm9@mail.gmail.com>
2010-08-13 15:59 ` Wakeup-events implementation Alan Stern
2010-08-14  4:59   ` Arve Hjønnevåg
2010-08-16 19:22     ` Alan Stern
2010-08-17  0:30       ` Arve Hjønnevåg
2010-08-17 15:53         ` Alan Stern
2010-08-17 18:37           ` David Brownell
2010-08-17 19:19             ` Alan Stern
2010-08-17 19:21           ` Rafael J. Wysocki
2010-08-18  0:40             ` Arve Hjønnevåg
2010-08-18 10:32               ` Mark Brown [this message]
2010-08-18 15:20               ` Alan Stern
2010-08-18 19:17                 ` Rafael J. Wysocki
2010-08-19  0:18                   ` Arve Hjønnevåg
2010-08-19 21:09                     ` Alan Stern
2010-08-19 23:12                       ` Arve Hjønnevåg
2010-08-20 15:04                         ` Alan Stern
2010-09-07 23:51                           ` [RFC][PATCH] PM / Wakeup: Introduce wakeup source objects and event statistics (was: Re: Wakeup-events implementation) Rafael J. Wysocki
2010-08-18  7:04           ` Wakeup-events implementation Florian Mickler

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=20100818103219.GA10255@sirena.org.uk \
    --to=broonie@sirena.org.uk \
    --cc=arve@android.com \
    --cc=linux-pm@lists.linux-foundation.org \
    /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