summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-image-redcore-lts-legacy/files/5.10-enable-new-amd-energy-driver-for-all-ryzen.patch
blob: 3d7a4948ec14986caa976129e2205e3a944980a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);