From: Andi Kleen Date: Sat, 21 Jul 2007 15:09:57 +0000 (+0200) Subject: x86_64: Use string instruction memcpy/memset on AMD Fam10 X-Git-Tag: v2.6.23-rc1~139 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b74e3abb3e9bd8a2f52a7b653941e3686c5df1a;p=linux-2.6 x86_64: Use string instruction memcpy/memset on AMD Fam10 Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 33ef718f8c..675b3d6de1 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -575,6 +575,8 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) level = cpuid_eax(1); if (c->x86 == 15 && ((level >= 0x0f48 && level < 0x0f50) || level >= 0x0f58)) set_bit(X86_FEATURE_REP_GOOD, &c->x86_capability); + if (c->x86 == 0x10) + set_bit(X86_FEATURE_REP_GOOD, &c->x86_capability); /* Enable workaround for FXSAVE leak */ if (c->x86 >= 6)