Re: [PATCH v7 8/8] x86/tlb: just do tlb flush on one of siblingsof SMT

From: H. Peter Anvin
Date: Thu May 24 2012 - 11:06:18 EST


On 05/24/2012 01:32 AM, Alex Shi wrote:
>
> Sure. but just want to know how many commercial x86 CPU uses >2 SMTs?
> Write a short, quick function to do random selection in SMT is quite
> complicate considering cpumask maybe just contain random number SMT
> siblings in a core.
>

Wrong question. This is a forward compatibility issue. You have to
take into account potential future CPUs as well.

And no, it isn't hard.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/