Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695AbZIIXnx (ORCPT ); Wed, 9 Sep 2009 19:43:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754582AbZIIXn0 (ORCPT ); Wed, 9 Sep 2009 19:43:26 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:35995 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754562AbZIIXl4 (ORCPT ); Wed, 9 Sep 2009 19:41:56 -0400 From: "Rafael J. Wysocki" To: "linux-pm" Subject: [PATCH 5/9] PM: Allow ACPI devices to suspend/resume asynchronously Date: Thu, 10 Sep 2009 01:37:38 +0200 User-Agent: KMail/1.12.1 (Linux/2.6.31-rc9-rjw; KDE/4.3.1; x86_64; ; ) Cc: LKML , Linux PCI , ACPI Devel Maling List , Len Brown , Zhang Rui , Pavel Machek , Alan Stern , Arjan van de Ven , Ingo Molnar References: <200909100127.11252.rjw@sisk.pl> In-Reply-To: <200909100127.11252.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200909100137.38335.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1098 Lines: 29 From: Rafael J. Wysocki Set async_suspend for all ACPI devices, so that they can be suspended and resumed asynchronously with other devices they don't depend on in a known way (i.e. devices which are not their parents or children and to which they are not connected via struct pm_link objects). Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6/drivers/acpi/scan.c =================================================================== --- linux-2.6.orig/drivers/acpi/scan.c +++ linux-2.6/drivers/acpi/scan.c @@ -539,6 +539,7 @@ static int acpi_device_register(struct a dev_name(&device->dev)); device->removal_type = ACPI_BUS_REMOVAL_NORMAL; + device_enable_async_suspend(&device->dev, true); return 0; end: mutex_lock(&acpi_device_lock); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/