diff options
Diffstat (limited to 'sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch')
-rw-r--r-- | sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch b/sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch new file mode 100644 index 00000000..3d7a4948 --- /dev/null +++ b/sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch @@ -0,0 +1,13 @@ +diff -Naur linux-5.10.2/drivers/hwmon/amd_energy.c linux-5.10.2-p/drivers/hwmon/amd_energy.c +--- linux-5.10.2/drivers/hwmon/amd_energy.c 2020-12-21 13:30:08.000000000 +0100 ++++ linux-5.10.2-p/drivers/hwmon/amd_energy.c 2020-12-25 16:41:30.326691167 +0100 +@@ -330,7 +330,8 @@ + static struct platform_device *amd_energy_platdev; + + static const struct x86_cpu_id cpu_ids[] __initconst = { +- X86_MATCH_VENDOR_FAM_MODEL(AMD, 0x17, 0x31, NULL), ++ X86_MATCH_VENDOR_FAM(AMD, 0x17, NULL), ++ X86_MATCH_VENDOR_FAM(AMD, 0x19, NULL), + {} + }; + MODULE_DEVICE_TABLE(x86cpu, cpu_ids); |