X-Git-Url: https://git.sur5r.net/?p=groeck-k10temp;a=blobdiff_plain;f=k10temp.c;fp=k10temp.c;h=6f8ffb9f945f22bfa3c5d5f7f64f9d4b0d9219c2;hp=e4a179d491bed6da66eb36a8c1efed2eec1a15b1;hb=484671790fb733076483e28585865d3012029466;hpb=fd93b8bc15ec768915f5567fc86432d50594e25a diff --git a/k10temp.c b/k10temp.c index e4a179d..6f8ffb9 100644 --- a/k10temp.c +++ b/k10temp.c @@ -24,6 +24,7 @@ #include #include #include +#include "compat.h" MODULE_DESCRIPTION("AMD Family 10h+ CPU core temperature monitor"); MODULE_AUTHOR("Clemens Ladisch "); @@ -234,7 +235,7 @@ static bool has_erratum_319(struct pci_dev *pdev) * and AM3 formats, but that's the best we can do. */ return boot_cpu_data.x86_model < 4 || - (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_mask <= 2); + (boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_stepping <= 2); } static int k10temp_probe(struct pci_dev *pdev,