From: Andreas Herrmann <herrmann.der.user@xxxxxxxxxxxxxx> Signed-off-by: Andreas Herrmann <herrmann.der.user@xxxxxxxxxxxxxx> Signed-off-by: Thomas Renninger <trenn@xxxxxxx> CC: Andreas Herrmann <herrmann.der.user@xxxxxxxxxxxxxx> CC: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> CC: cpufreq@xxxxxxxxxxxxxxx --- lib/pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pci.c b/lib/pci.c index 8887aa5..83d1581 100644 --- a/lib/pci.c +++ b/lib/pci.c @@ -66,7 +66,7 @@ int amd_pci_get_num_boost_states(int *active, int *states) { struct pci_access *pci_acc; int vendor_id = 0x1022; - int boost_dev_ids[2] = {0x1204, 0}; + int boost_dev_ids[4] = {0x1204, 0x1504, 0x1704, 0}; struct pci_dev *device; uint8_t val = 0; @@ -82,7 +82,7 @@ int amd_pci_get_num_boost_states(int *active, int *states) *active = 1; else *active = 0; - *states = (val >> 2) & 1; + *states = (val >> 2) & 7; pci_acc_cleanup(pci_acc); return 0; -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html