]> git.baikalelectronics.ru Git - kernel.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>
Fri, 5 Sep 2008 23:14:01 +0000 (16:14 -0700)
commit1882c61df64f8dcc4c5aaaa62aa6feb8a8fd054a
treed64b75a4f80d6fc3138bf29446496f95f2f484aa
parentc72ff2d97716d0ace21ff1c9396fb00f496f039f
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