Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-11-02 Thread Rafael J. Wysocki
On Friday, November 02, 2012 01:17:10 PM Aaron Lu wrote: > On 10/30/2012 11:20 PM, Rafael J. Wysocki wrote: > > On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: > >> On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: > >>> From: Rafael J. Wysocki > >>> > >>> If the caller

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-11-02 Thread Rafael J. Wysocki
On Friday, November 02, 2012 01:17:10 PM Aaron Lu wrote: On 10/30/2012 11:20 PM, Rafael J. Wysocki wrote: On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com If the

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-11-01 Thread Aaron Lu
On 10/30/2012 11:20 PM, Rafael J. Wysocki wrote: > On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: >> On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> If the caller of acpi_bus_set_power() already has a pointer to the >>> struct

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-11-01 Thread Aaron Lu
On 10/30/2012 11:20 PM, Rafael J. Wysocki wrote: On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com If the caller of acpi_bus_set_power() already has a pointer to the

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: > On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If the caller of acpi_bus_set_power() already has a pointer to the > > struct acpi_device object corresponding to the device in

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-30 Thread Aaron Lu
On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If the caller of acpi_bus_set_power() already has a pointer to the > struct acpi_device object corresponding to the device in question, it > doesn't make sense for it to go through

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-30 Thread Aaron Lu
On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com If the caller of acpi_bus_set_power() already has a pointer to the struct acpi_device object corresponding to the device in question, it doesn't make sense for it to go

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-30 Thread Rafael J. Wysocki
On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki rafael.j.wyso...@intel.com If the caller of acpi_bus_set_power() already has a pointer to the struct acpi_device object corresponding to the

[PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the caller of acpi_bus_set_power() already has a pointer to the struct acpi_device object corresponding to the device in question, it doesn't make sense for it to go through acpi_bus_get_device(), which may be costly, because it involves acquiring the global ACPI

[PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com If the caller of acpi_bus_set_power() already has a pointer to the struct acpi_device object corresponding to the device in question, it doesn't make sense for it to go through acpi_bus_get_device(), which may be costly, because it involves