summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/setup.c
diff options
context:
space:
mode:
authorAndi Kleen2007-07-21 17:09:57 +0200
committerLinus Torvalds2007-07-22 03:37:08 +0200
commit5b74e3abb3e9bd8a2f52a7b653941e3686c5df1a (patch)
tree8b1beb51463e03ef63b554d41f853b857d7bf1ec /arch/x86_64/kernel/setup.c
parentx86_64: various cleanups in NUMA scan node (diff)
downloadkernel-qcow2-linux-5b74e3abb3e9bd8a2f52a7b653941e3686c5df1a.tar.gz
kernel-qcow2-linux-5b74e3abb3e9bd8a2f52a7b653941e3686c5df1a.tar.xz
kernel-qcow2-linux-5b74e3abb3e9bd8a2f52a7b653941e3686c5df1a.zip
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>
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r--arch/x86_64/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 33ef718f8cb5..675b3d6de10b 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)