Skip to content

Commit 54c33e2

Browse files
committed
x86/CPU/AMD: Get rid of amd_erratum_1054[]
No functional changes. Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Nikolay Borisov <[email protected]> Link: http://lore.kernel.org/r/[email protected]
1 parent bfff3c6 commit 54c33e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/x86/kernel/cpu/amd.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ static const int amd_erratum_400[] =
6666
static const int amd_erratum_383[] =
6767
AMD_OSVW_ERRATUM(3, AMD_MODEL_RANGE(0x10, 0, 0, 0xff, 0xf));
6868

69-
/* #1054: Instructions Retired Performance Counter May Be Inaccurate */
70-
static const int amd_erratum_1054[] =
71-
AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x17, 0, 0, 0x2f, 0xf));
72-
7369
static const int amd_erratum_1485[] =
7470
AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x19, 0x10, 0x0, 0x1f, 0xf),
7571
AMD_MODEL_RANGE(0x19, 0x60, 0x0, 0xaf, 0xf));
@@ -1201,7 +1197,7 @@ static void init_amd(struct cpuinfo_x86 *c)
12011197
* Counter May Be Inaccurate".
12021198
*/
12031199
if (cpu_has(c, X86_FEATURE_IRPERF) &&
1204-
!cpu_has_amd_erratum(c, amd_erratum_1054))
1200+
(boot_cpu_has(X86_FEATURE_ZEN) && c->x86_model > 0x2f))
12051201
msr_set_bit(MSR_K7_HWCR, MSR_K7_HWCR_IRPERF_EN_BIT);
12061202

12071203
check_null_seg_clears_base(c);

0 commit comments

Comments
 (0)