Re: [PATCH tip:x86/mm 1/3] x86: A fast way to check capabilities of the current cpu

From: Andi Kleen
Date: Mon Mar 14 2011 - 15:50:21 EST


Tejun Heo <tj@xxxxxxxxxx> writes:

> Add this_cpu_has() which determines if the current cpu has a certain
> ability using a segment prefix and a bit test operation.


Hmm: if the CPU capability is really tested in a performance critical
path, wouldn't it even be better to just use static_branch() now?

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
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/