Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [PATCH tip:x86/mm 1/3] x86: A fast way to check capabilities of the current cpu | Date | Mon, 14 Mar 2011 12:49:14 -0700 |
| |
Tejun Heo <tj@kernel.org> 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@linux.intel.com -- Speaking for myself only
| |