diff options
author | Naveen Krishna Chatradhi <nchatrad@amd.com> | 2020-07-06 22:47:15 +0530 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2020-07-07 07:14:52 -0700 |
commit | f28e360f29031fdef8df3a1bcad666243bd6872d (patch) | |
tree | 3d6939d940eae4f85deae2894e521028ae3e1851 /drivers/hwmon | |
parent | bc4071aafcf4d0535ee423b69167696d6c03207d (diff) | |
download | linux-stable-f28e360f29031fdef8df3a1bcad666243bd6872d.tar.gz linux-stable-f28e360f29031fdef8df3a1bcad666243bd6872d.tar.bz2 linux-stable-f28e360f29031fdef8df3a1bcad666243bd6872d.zip |
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: Naveen Krishna Chatradhi <nchatrad@amd.com>
Fixes: 8abee9566b7e ("hwmon: Add amd_energy driver to report energy counters")
Link: https://lore.kernel.org/r/20200706171715.124993-1-nchatrad@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/amd_energy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/amd_energy.c b/drivers/hwmon/amd_energy.c index e95b7426106e..29603742c858 100644 --- a/drivers/hwmon/amd_energy.c +++ b/drivers/hwmon/amd_energy.c @@ -362,7 +362,7 @@ static struct platform_driver amd_energy_driver = { static struct platform_device *amd_energy_platdev; 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); |