]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: use X86_FEATURE_NOPL in alternatives
authorH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 00:50:33 +0000 (17:50 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 01:22:18 +0000 (18:22 -0700)
commitf1c5d30e1d79bbfb60eaf189db862d3cb2bcac92
tree457aeabcfff8885fbcc66384758e5c31369ca414
parent7e00df5818964298c9821365a6cb7a8304227c5c
x86: use X86_FEATURE_NOPL in alternatives

Use X86_FEATURE_NOPL to determine if it is safe to use P6 NOPs in
alternatives.  Also, replace table and loop with simple if statement.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/alternative.c