Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00859790 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[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: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dcf36bfa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
	}