x86: use X86_FEATURE_NOPL in alternatives
commitf1c5d30e1d79bbfb60eaf189db862d3cb2bcac92
authorH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 00:50:33 +0000 (18 17:50 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 19 Aug 2008 01:22:18 +0000 (18 18:22 -0700)
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