aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 16:56:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-26 16:56:35 -0400
commitc8b3fd0ce313443731e8fd6d5a541085eb465f99 (patch)
tree7d5da02ff8afbaa4804dab655c7d569753c98474 /tools
parentd89b3e19ef98a8d3b81a9f8a62c6ac89fd00412e (diff)
parente0155a99b28f63e007c0c74076ad8ae486a3c9d3 (diff)
Merge tag 'pm+acpi-4.1-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull more power management and ACPI updates from Rafael Wysocki: "These are fixes mostly (intel_pstate, ACPI core, ACPI EC driver, cpupower tool), a new CPU ID for the Intel RAPL driver and one intel_pstate driver improvement that didn't make it to my previous pull requests due to timing. Specifics: - Fix a build warning in the intel_pstate driver showing up in non-SMP builds (Borislav Petkov) - Change one of the intel_pstate's P-state selection parameters for Baytrail and Cherrytrail CPUs to significantly improve performance at the cost of a small increase in energy consumption (Kristen Carlson Accardi) - Fix a NULL pointer dereference in the ACPI EC driver due to an unsafe list walk in the query handler removal routine (Chris Bainbridge) - Get rid of a false-positive lockdep warning in the ACPI container hot-remove code (Rafael J Wysocki) - Prevent the ACPI device enumeration code from creating device objects of a wrong type in some cases (Rafael J Wysocki) - Add Skylake processors support to the Intel RAPL power capping driver (Brian Bian) - Drop the stale MAINTAINERS entry for the ACPI dock driver that is regarded as part of the ACPI core and maintained along with it now (Chao Yu) - Fix cpupower tool breakage caused by a library API change in libpci 3.3.0 (Lucas Stach)" * tag 'pm+acpi-4.1-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI / scan: Add a scan handler for PRP0001 ACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline() ACPI / EC: fix NULL pointer dereference in acpi_ec_remove_query_handler() MAINTAINERS: remove maintainship entry of docking station driver powercap / RAPL: Add support for Intel Skylake processors cpufreq: intel_pstate: Fix an annoying !CONFIG_SMP warning intel_pstate: Change the setpoint for Atom params cpupower: fix breakage from libpci API change
Diffstat (limited to 'tools')
-rw-r--r--tools/power/cpupower/utils/helpers/pci.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/power/cpupower/utils/helpers/pci.c b/tools/power/cpupower/utils/helpers/pci.c
index 9690798e6446..8b278983cfc5 100644
--- a/tools/power/cpupower/utils/helpers/pci.c
+++ b/tools/power/cpupower/utils/helpers/pci.c
@@ -25,14 +25,21 @@
25struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, int bus, 25struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, int bus,
26 int slot, int func, int vendor, int dev) 26 int slot, int func, int vendor, int dev)
27{ 27{
28 struct pci_filter filter_nb_link = { domain, bus, slot, func, 28 struct pci_filter filter_nb_link;
29 vendor, dev };
30 struct pci_dev *device; 29 struct pci_dev *device;
31 30
32 *pacc = pci_alloc(); 31 *pacc = pci_alloc();
33 if (*pacc == NULL) 32 if (*pacc == NULL)
34 return NULL; 33 return NULL;
35 34
35 pci_filter_init(*pacc, &filter_nb_link);
36 filter_nb_link.domain = domain;
37 filter_nb_link.bus = bus;
38 filter_nb_link.slot = slot;
39 filter_nb_link.func = func;
40 filter_nb_link.vendor = vendor;
41 filter_nb_link.device = dev;
42
36 pci_init(*pacc); 43 pci_init(*pacc);
37 pci_scan_bus(*pacc); 44 pci_scan_bus(*pacc);
38 45