aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/i387.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-05-11 17:47:07 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-05-11 17:47:07 -0700
commita3c8acd04376d604370dcb6cd2143c9c14078a50 (patch)
treec6d467d1007ab51fd17b88a37db79d583bac7033 /arch/x86/include/asm/i387.h
parentx86, fpu: Use the proper asm constraint in use_xsave() (diff)
downloadlinux-dev-a3c8acd04376d604370dcb6cd2143c9c14078a50.tar.xz
linux-dev-a3c8acd04376d604370dcb6cd2143c9c14078a50.zip
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 <hpa@zytor.com> Cc: Avi Kivity <avi@redhat.com> Cc: Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <1273135546-29690-2-git-send-email-avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/i387.h')
0 files changed, 0 insertions, 0 deletions