Skip to content

Commit 5b74e3a

Browse files
Andi KleenLinus Torvalds
authored andcommitted
x86_64: Use string instruction memcpy/memset on AMD Fam10
Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ae2c6dc commit 5b74e3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86_64/kernel/setup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,8 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
575575
level = cpuid_eax(1);
576576
if (c->x86 == 15 && ((level >= 0x0f48 && level < 0x0f50) || level >= 0x0f58))
577577
set_bit(X86_FEATURE_REP_GOOD, &c->x86_capability);
578+
if (c->x86 == 0x10)
579+
set_bit(X86_FEATURE_REP_GOOD, &c->x86_capability);
578580

579581
/* Enable workaround for FXSAVE leak */
580582
if (c->x86 >= 6)

0 commit comments

Comments
 (0)