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>
Fri, 5 Sep 2008 23:14:01 +0000 (16:14 -0700)
commitf31d731e4467e61de51d7f6d7115f3b712d9354c
treed64b75a4f80d6fc3138bf29446496f95f2f484aa
parentb6734c35af028f06772c0b2c836c7d579e6d4dad
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