From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-pm <linux-pm@lists.linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-acpi <linux-acpi@vger.kernel.org>,
Arjan van de Ven <arjan@linux.intel.com>
Subject: [RFC][PATCH 3/3] PM: Asynchronous suspend and resume for ACPI battery
Date: Wed, 12 Aug 2009 22:22:02 +0200 [thread overview]
Message-ID: <200908122222.02315.rjw@sisk.pl> (raw)
In-Reply-To: <200908122218.13975.rjw@sisk.pl>
Allow the ACPI battery device to be resumed and suspended
asynchronously.
This only means that the driver's suspend and resume callbacks may
be executed in parallel with the callbacks of devices that don't
directly depend on the battery device (i.e. that are not its parent
or children).
Index: linux-2.6/drivers/acpi/battery.c
===================================================================
--- linux-2.6.orig/drivers/acpi/battery.c
+++ linux-2.6/drivers/acpi/battery.c
@@ -837,6 +837,7 @@ static int acpi_battery_add(struct acpi_
printk(KERN_INFO PREFIX "%s Slot [%s] (battery %s)\n",
ACPI_BATTERY_DEVICE_NAME, acpi_device_bid(device),
device->status.battery_present ? "present" : "absent");
+ device_enable_async_suspend(&device->dev, true);
} else {
#ifdef CONFIG_ACPI_PROCFS_POWER
acpi_battery_remove_fs(device);
next prev parent reply other threads:[~2009-08-12 20:22 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200908122218.13975.rjw@sisk.pl>
2009-08-12 20:20 ` [RFC][PATCH 1/3] PM: Asynchronous resume of devices Rafael J. Wysocki
2009-08-14 16:33 ` Pavel Machek
[not found] ` <20090814163328.GF1626@ucw.cz>
2009-08-15 20:59 ` Rafael J. Wysocki
[not found] ` <200908152259.18417.rjw@sisk.pl>
2009-08-22 9:24 ` Pavel Machek
[not found] ` <20090822092429.GC11448@elf.ucw.cz>
2009-08-22 21:45 ` Rafael J. Wysocki
2009-08-12 20:21 ` [RFC][PATCH 2/3] PM: Asynchronous suspend " Rafael J. Wysocki
2009-08-12 20:22 ` Rafael J. Wysocki [this message]
2009-08-12 21:12 ` [RFC][PATCH 0/3] PM: Asynchronous suspend and resume Alan Stern
2009-08-14 16:33 ` Pavel Machek
[not found] ` <200908122221.20568.rjw@sisk.pl>
2009-08-14 16:35 ` [RFC][PATCH 2/3] PM: Asynchronous suspend of devices Pavel Machek
[not found] ` <20090814163509.GK1626@ucw.cz>
2009-08-15 21:04 ` Rafael J. Wysocki
[not found] ` <200908152304.59881.rjw@sisk.pl>
2009-08-22 9:25 ` Pavel Machek
[not found] ` <20090822092554.GD11448@elf.ucw.cz>
2009-08-22 21:46 ` Rafael J. Wysocki
[not found] ` <20090814163310.GE1626@ucw.cz>
2009-08-15 21:00 ` [RFC][PATCH 0/3] PM: Asynchronous suspend and resume Rafael J. Wysocki
2009-08-17 0:15 ` [RFC][PATCH 0/7] PM: Asynchronous suspend and resume (updated) Rafael J. Wysocki
2009-08-17 0:16 ` [RFC][PATCH 1/7] PM: Update kerneldoc comments in drivers/base/power/main.c Rafael J. Wysocki
2009-08-17 0:17 ` [RFC][PATCH 2/7] PM: Framework for representing PM links between devices Rafael J. Wysocki
2009-08-17 0:18 ` [RFC][PATCH 3/7] PM: Asynchronous resume of I/O devices Rafael J. Wysocki
2009-08-17 0:19 ` [RFC][PATCH 4/7] PM: Asynchronous suspend " Rafael J. Wysocki
2009-08-17 0:20 ` [RFC][PATCH 5/7] PM: Asynchronous suspend and resume of PCI devices Rafael J. Wysocki
2009-08-17 0:20 ` [RFC][PATCH 6/7] PM: Asynchronous suspend and resume of ACPI devices Rafael J. Wysocki
2009-08-17 0:21 ` [RFC][PATCH 7/7] PM: Asynchronous suspend and resume of i8042 Rafael J. Wysocki
2009-08-18 1:59 ` [RFC][PATCH 0/7] PM: Asynchronous suspend and resume (updated) Zhang Rui
[not found] ` <200908170220.18874.rjw@sisk.pl>
2009-08-18 6:57 ` [RFC][PATCH 5/7] PM: Asynchronous suspend and resume of PCI devices Zhang Rui
[not found] ` <200908170221.34885.rjw@sisk.pl>
2009-08-18 7:03 ` [RFC][PATCH 7/7] PM: Asynchronous suspend and resume of i8042 Zhang Rui
[not found] ` <1250579010.5351.69.camel@rzhang-dt>
2009-08-18 19:57 ` Rafael J. Wysocki
[not found] ` <200908182157.53283.rjw@sisk.pl>
2009-08-18 23:40 ` Rafael J. Wysocki
2009-08-26 15:43 ` Pavel Machek
2009-08-18 7:16 ` [RFC][PATCH 0/7] PM: Asynchronous suspend and resume (updated) Zhang Rui
2009-08-18 14:04 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0908180954210.2995-100000@iolanthe.rowland.org>
2009-08-18 19:56 ` Rafael J. Wysocki
2009-08-26 13:20 ` Pavel Machek
[not found] ` <1250579793.5351.79.camel@rzhang-dt>
2009-08-18 20:01 ` Rafael J. Wysocki
[not found] ` <200908182201.11489.rjw@sisk.pl>
2009-08-18 23:58 ` Rafael J. Wysocki
[not found] ` <200908190158.09623.rjw@sisk.pl>
2009-08-19 1:05 ` Zhang Rui
[not found] ` <1250643929.17853.11.camel@rzhang-dt>
2009-08-19 21:02 ` Rafael J. Wysocki
[not found] ` <200908192302.31453.rjw@sisk.pl>
2009-08-21 7:40 ` Zhang Rui
2009-08-26 15:44 ` Pavel Machek
[not found] ` <200908170217.45286.rjw@sisk.pl>
2009-08-21 22:27 ` [RFC][PATCH 2/7 update] PM: Framework for representing PM links between devices Rafael J. Wysocki
[not found] ` <200908170218.45513.rjw@sisk.pl>
2009-08-23 22:09 ` [RFC][PATCH 3/7 updated] PM: Asynchronous resume of I/O devices Rafael J. Wysocki
[not found] ` <200908170216.38401.rjw@sisk.pl>
2009-08-19 21:57 ` [RFC][PATCH 1/7] PM: Update kerneldoc comments in drivers/base/power/main.c Rafael J. Wysocki
[not found] ` <200908192357.31358.rjw@sisk.pl>
2009-08-19 22:00 ` Randy Dunlap
2009-08-19 22:06 ` Greg KH
2009-08-19 22:28 ` Alan Stern
2009-08-26 15:44 ` Pavel Machek
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=200908122222.02315.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=arjan@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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