diff options
author | H. Peter Anvin <[email protected]> | 2010-05-11 17:47:07 -0700 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-05-11 17:47:07 -0700 |
commit | a3c8acd04376d604370dcb6cd2143c9c14078a50 (patch) | |
tree | c6d467d1007ab51fd17b88a37db79d583bac7033 /net/lapb/lapb_in.c | |
parent | dce8bf4e115aa44d590802ce3554e926840c9042 (diff) |
x86: Add new static_cpu_has() function using alternatives
For CPU-feature-specific code that touches performance-critical paths,
introduce a static patching version of [boot_]cpu_has(). This is run
at alternatives time and is therefore not appropriate for most
initialization code, but on the other hand initialization code is
generally not performance critical.
On gcc 4.5+ this uses the new "asm goto" feature.
Signed-off-by: H. Peter Anvin <[email protected]>
Cc: Avi Kivity <[email protected]>
Cc: Suresh Siddha <[email protected]>
LKML-Reference: <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions