mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
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>
This commit is contained in:
parent
ae2c6dcf90
commit
5b74e3abb3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user