diff options
| author | 2021-08-24 14:20:54 +0200 | |
|---|---|---|
| committer | 2021-09-28 16:19:37 -0500 | |
| commit | 6bc779ee05d4fa66c99096dbf88ff61acbb8a887 (patch) | |
| tree | b325c17ab717242e8db8f7a463c12794bd8330ec /include/linux/mfd/git:/ssh: | |
| parent | PCI/ACPI: Move _OSC query checks to separate function (diff) | |
| download | linux-dev-6bc779ee05d4fa66c99096dbf88ff61acbb8a887.tar.xz linux-dev-6bc779ee05d4fa66c99096dbf88ff61acbb8a887.zip | |
PCI/ACPI: Check for _OSC support in acpi_pci_osc_control_set()
Get rid of acpi_pci_osc_support() and check for _OSC supported features
directly in acpi_pci_osc_control_set(). There is no point in doing an
unconditional _OSC query with control=0 even when the kernel later wants to
take control over more features.
This saves one _OSC query and simplifies the code by getting rid of the
acpi_pci_osc_support() function. As a side effect, the !control checks in
acpi_pci_query_osc() can also be removed.
Link: https://lore.kernel.org/r/20210824122054.29481-5-joro@8bytes.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Diffstat (limited to 'include/linux/mfd/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
