aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2007-07-22 05:12:34 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-22 14:03:38 -0400
commit0bd8acd1a7fbb5492c1de8af271b6964a7fd5274 (patch)
tree79193ff8c5a9a0914e40d447516aa765627e22c3 /arch/x86_64
parentfbab6e7a5cdcc53c2f56404ae0f7f5a3fd48f609 (diff)
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>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 6fa0a302e2aa..af838f6b0b7f 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -608,6 +608,9 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
608 else 608 else
609 num_cache_leaves = 3; 609 num_cache_leaves = 3;
610 610
611 if (c->x86 == 0xf || c->x86 == 0x10 || c->x86 == 0x11)
612 set_bit(X86_FEATURE_K8, &c->x86_capability);
613
611 /* RDTSC can be speculated around */ 614 /* RDTSC can be speculated around */
612 clear_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability); 615 clear_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability);
613 616