Commit f28e360f authored by Naveen Krishna Chatradhi's avatar Naveen Krishna Chatradhi Committed by Guenter Roeck

hwmon: (amd_energy) match for supported models

The energy counters of certain models seems to be reporting
inconsistent values. Hence, match for the supported models.
Signed-off-by: default avatarNaveen Krishna Chatradhi <nchatrad@amd.com>
Fixes: 8abee956 ("hwmon: Add amd_energy driver to report energy counters")
Link: https://lore.kernel.org/r/20200706171715.124993-1-nchatrad@amd.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent bc4071aa
...@@ -362,7 +362,7 @@ static struct platform_driver amd_energy_driver = { ...@@ -362,7 +362,7 @@ static struct platform_driver amd_energy_driver = {
static struct platform_device *amd_energy_platdev; static struct platform_device *amd_energy_platdev;
static const struct x86_cpu_id cpu_ids[] __initconst = { static const struct x86_cpu_id cpu_ids[] __initconst = {
X86_MATCH_VENDOR_FAM(AMD, 0x17, NULL), X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL),
{} {}
}; };
MODULE_DEVICE_TABLE(x86cpu, cpu_ids); MODULE_DEVICE_TABLE(x86cpu, cpu_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment