projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
753e3ac
)
PCI/ACPI: Remove unnecessary _OSC evaluation for control request
author
Taku Izumi
<
[email protected]
>
Thu, 20 Nov 2008 06:22:37 +0000
(15:22 +0900)
committer
Jesse Barnes
<
[email protected]
>
Wed, 7 Jan 2009 19:12:35 +0000
(11:12 -0800)
If a control had already been granted, we don't need to re-evaluate
_OSC for it because firmware may not reject control of any feature it
has previously granted control to.
Reviewed-by: Andrew Patterson <
[email protected]
>
Tested-by: Andrew Patterson <
[email protected]
>
Signed-off-by: Kenji Kaneshige <
[email protected]
>
Signed-off-by: Taku Izumi <
[email protected]
>
Signed-off-by: Jesse Barnes <
[email protected]
>
drivers/pci/pci-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-acpi.c
b/drivers/pci/pci-acpi.c
index c580a525d9ce7d4e6bfcc10055bf307d2625ad93..736bb248008e5baace5e188e6a4d691e230b4dcd 100644
(file)
--- a/
drivers/pci/pci-acpi.c
+++ b/
drivers/pci/pci-acpi.c
@@
-210,6
+210,10
@@
acpi_status pci_osc_control_set(acpi_handle handle, u32 flags)
goto out;
}
+ /* No need to evaluate _OSC if the control was already granted. */
+ if ((osc_data->control_set & ctrlset) == ctrlset)
+ goto out;
+
if (!osc_data->is_queried) {
status = __acpi_query_osc(osc_data->support_set, osc_data);
if (ACPI_FAILURE(status))