diff options
-rw-r--r-- | drivers/edac/amd64_edac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 7e539ac769d7..0cbcf6e34a4c 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -1046,13 +1046,12 @@ static int k8_early_channel_count(struct amd64_pvt *pvt) | |||
1046 | if (err) | 1046 | if (err) |
1047 | return err; | 1047 | return err; |
1048 | 1048 | ||
1049 | if ((boot_cpu_data.x86_model >> 4) >= K8_REV_F) { | 1049 | if (pvt->ext_model >= K8_REV_F) |
1050 | /* RevF (NPT) and later */ | 1050 | /* RevF (NPT) and later */ |
1051 | flag = pvt->dclr0 & F10_WIDTH_128; | 1051 | flag = pvt->dclr0 & F10_WIDTH_128; |
1052 | } else { | 1052 | else |
1053 | /* RevE and earlier */ | 1053 | /* RevE and earlier */ |
1054 | flag = pvt->dclr0 & REVE_WIDTH_128; | 1054 | flag = pvt->dclr0 & REVE_WIDTH_128; |
1055 | } | ||
1056 | 1055 | ||
1057 | /* not used */ | 1056 | /* not used */ |
1058 | pvt->dclr1 = 0; | 1057 | pvt->dclr1 = 0; |