From: H. Peter Anvin Date: Wed, 12 May 2010 00:47:07 +0000 (-0700) Subject: x86: Add new static_cpu_has() function using alternatives X-Git-Tag: v2.6.35-rc1~514^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3c8acd04376d604370dcb6cd2143c9c14078a50;p=pandora-kernel.git 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 Cc: Avi Kivity Cc: Suresh Siddha LKML-Reference: <1273135546-29690-2-git-send-email-avi@redhat.com> --- Reading git-diff-tree failed