瀏覽代碼

[PATCH] x86_64: Remove bogus special case in AMD core parsing.

No need to restrict to power of two here.

TBD needs more double checking

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andi Kleen 19 年之前
父節點
當前提交
0085979006
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      arch/x86_64/kernel/setup.c

+ 0 - 2
arch/x86_64/kernel/setup.c

@@ -946,8 +946,6 @@ static int __init init_amd(struct cpuinfo_x86 *c)
 
 	if (c->extended_cpuid_level >= 0x80000008) {
 		c->x86_max_cores = (cpuid_ecx(0x80000008) & 0xff) + 1;
-		if (c->x86_max_cores & (c->x86_max_cores - 1))
-			c->x86_max_cores = 1;
 
 		amd_detect_cmp(c);
 	}