cpupower: Better interface for accessing AMD pci registers
authorThomas Renninger <trenn@suse.de>
Tue, 11 Oct 2011 13:33:50 +0000 (15:33 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sat, 3 Mar 2012 13:40:08 +0000 (14:40 +0100)
commit568a89904c7fc93071efd7f811fc58aff6d5774a
treec81cff216b96146e2b97203d96dc0f60b041d5ab
parent6b21d18ed50c7d145220b0724ea7f2613abf0f95
cpupower: Better interface for accessing AMD pci registers

AMD's BKDG (Bios and Kernel Developers Guide) talks in the CPU spec of their
CPU families about PCI registers defined by "device" (slot) and func(tion).

Assuming that CPU specific configuration PCI devices are always on domain
and bus zero a pci_slot_func_init() func which gets the slot and func of
the desired PCI device passed looks like the most convenient way.

This also obsoletes the PCI device id maintenance.

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: Andreas Herrmann <herrmann.der.user@googlemail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
tools/power/cpupower/utils/helpers/amd.c
tools/power/cpupower/utils/helpers/helpers.h
tools/power/cpupower/utils/helpers/pci.c
tools/power/cpupower/utils/idle_monitor/amd_fam14h_idle.c