mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 12:24:34 +08:00
x86_64: Set K8 CPUID flag for K8/Fam10h/Fam11h
Previously this flag was only used on 32bit, but some shared code can use it now. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fbab6e7a5c
commit
0bd8acd1a7
@ -608,6 +608,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
|
||||
else
|
||||
num_cache_leaves = 3;
|
||||
|
||||
if (c->x86 == 0xf || c->x86 == 0x10 || c->x86 == 0x11)
|
||||
set_bit(X86_FEATURE_K8, &c->x86_capability);
|
||||
|
||||
/* RDTSC can be speculated around */
|
||||
clear_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user