From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Greg KH <gregkh@suse.de>, LKML <linux-kernel@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 8)
Date: Fri, 10 Jul 2009 01:22:40 +0200 [thread overview]
Message-ID: <20090709232239.GG1469@ucw.cz> (raw)
In-Reply-To: <200907060252.12755.rjw@sisk.pl>
hi!
> +/**
> + * Device run-time power management request types.
> + *
> + * RPM_REQ_NONE Do nothing.
> + *
> + * RPM_REQ_IDLE Run the device bus type's ->runtime_idle() callback
> + *
> + * RPM_REQ_SUSPEND Run the device bus type's ->runtime_suspend() callback
> + *
> + * RPM_REQ_RESUME Run the device bus type's ->runtime_resume() callback
> + */
> +
> +enum rpm_request {
> + RPM_REQ_NONE = 0,
> + RPM_REQ_IDLE,
> + RPM_REQ_SUSPEND,
> + RPM_REQ_RESUME,
> +};
> +
> struct dev_pm_info {
> pm_message_t power_state;
> - unsigned can_wakeup:1;
> - unsigned should_wakeup:1;
> + unsigned int can_wakeup:1;
> + unsigned int should_wakeup:1;
> enum dpm_state status; /* Owned by the PM core */
> -#ifdef CONFIG_PM_SLEEP
> +#ifdef CONFIG_PM_SLEEP
> struct list_head entry;
> #endif
> +#ifdef CONFIG_PM_RUNTIME
> + struct timer_list suspend_timer;
> + unsigned long timer_expires;
> + struct work_struct work;
> + wait_queue_head_t wait_queue;
> + spinlock_t lock;
> + atomic_t usage_count;
> + atomic_t child_count;
> + unsigned int ignore_children:1;
> + unsigned int runtime_disabled:1;
> + unsigned int runtime_failure:1;
> + unsigned int idle_notification:1;
> + unsigned int request_pending:1;
> + unsigned int deferred_resume:1;
> + enum rpm_request request;
> + enum rpm_status runtime_status;
runtime_status seems to be accessed outside spinlocks. Should it be of
type atomic_t?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2009-07-09 23:22 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200907060252.12755.rjw@sisk.pl>
2009-07-07 15:12 ` [RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 8) Magnus Damm
[not found] ` <aec7e5c30907070812n7b418c9bobf64a5259cb6c58d@mail.gmail.com>
2009-07-07 22:07 ` Rafael J. Wysocki
[not found] ` <200907080007.38595.rjw@sisk.pl>
2009-07-08 2:54 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0907072222210.13052-100000@netrider.rowland.org>
2009-07-08 4:40 ` Magnus Damm
2009-07-08 5:45 ` Magnus Damm
[not found] ` <aec7e5c30907072245i63b632f4r9a2b7ae0d819b446@mail.gmail.com>
2009-07-08 19:01 ` Rafael J. Wysocki
2009-07-09 23:22 ` Pavel Machek [this message]
[not found] <aec7e5c30907081952t4b88f1ccjeec6ab11b1d913b8@mail.gmail.com>
2009-07-09 13:48 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0907090937530.5823-100000@iolanthe.rowland.org>
2009-07-09 15:31 ` Magnus Damm
[not found] ` <aec7e5c30907090831y180b0972o6dcb961dd292a3c0@mail.gmail.com>
2009-07-09 21:56 ` Mahalingam, Nithish
[not found] ` <175E0F9A9EFCEA46A65F5552BB057298BB5F3EA2@bgsmsx502.gar.corp.intel.com>
2009-07-11 11:08 ` Rafael J. Wysocki
[not found] ` <200907111308.44388.rjw@sisk.pl>
2009-07-12 2:05 ` Mahalingam, Nithish
2009-07-13 1:42 ` Magnus Damm
[not found] <Pine.LNX.4.44L0.0907081707090.22618-100000@iolanthe.rowland.org>
2009-07-08 21:29 ` Rafael J. Wysocki
2009-07-08 21:29 ` Rafael J. Wysocki
2009-07-08 21:29 ` Rafael J. Wysocki
[not found] <200907082155.40903.rjw@sisk.pl>
2009-07-08 21:09 ` Alan Stern
[not found] <200907082101.29387.rjw@sisk.pl>
2009-07-08 19:42 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0907081530120.22105-100000@iolanthe.rowland.org>
2009-07-08 19:55 ` Rafael J. Wysocki
2009-07-09 2:52 ` Magnus Damm
[not found] <aec7e5c30907072140y7dd3b4c7ge7cb0b750bef3226@mail.gmail.com>
2009-07-08 14:26 ` Alan Stern
2009-07-06 0:52 Rafael J. Wysocki
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=20090709232239.GG1469@ucw.cz \
--to=pavel@ucw.cz \
--cc=arjan@infradead.org \
--cc=gregkh@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mingo@elte.hu \
--cc=rjw@sisk.pl \
/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