Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86,AMD: Power driver support for AMD's family 16h processors

Add family 16h PCI ID to AMD's power driver to allow it report
power consumption on these processors.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Boris Ostrovsky and committed by
Guenter Roeck
22e32f4f 9489e9dc

+4
+4
drivers/hwmon/fam15h_power.c
··· 31 31 MODULE_AUTHOR("Andreas Herrmann <herrmann.der.user@googlemail.com>"); 32 32 MODULE_LICENSE("GPL"); 33 33 34 + /* Family 16h Northbridge's function 4 PCI ID */ 35 + #define PCI_DEVICE_ID_AMD_16H_NB_F4 0x1534 36 + 34 37 /* D18F3 */ 35 38 #define REG_NORTHBRIDGE_CAP 0xe8 36 39 ··· 251 248 252 249 static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = { 253 250 { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) }, 251 + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) }, 254 252 {} 255 253 }; 256 254 MODULE_DEVICE_TABLE(pci, fam15h_power_id_table);