]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: don't use P6_NOPs if compiling with CONFIG_X86_GENERIC
authorH. Peter Anvin <hpa@zytor.com>
Tue, 18 Mar 2008 23:23:07 +0000 (19:23 -0400)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:39 +0000 (11:47 -0700)
commita71fad255d2ab627ad9f16caf3681aaba84c2510
tree41df48628ff05393666519e645149b72804cff13
parentb9c98c2a4580b94021266bbf3f4a70b6ca030558
x86: don't use P6_NOPs if compiling with CONFIG_X86_GENERIC

Commit: 959b3be64cab9160cd74532a49b89cdd918d38e9

x86: don't use P6_NOPs if compiling with CONFIG_X86_GENERIC

P6_NOPs are definitely not supported on some VIA CPUs, and possibly
(unverified) on AMD K7s.  It is also the only thing that prevents a
686 kernel from running on Transmeta TM3x00/5x00 (Crusoe) series.

The performance benefit over generic NOPs is very small, so when
building for generic consumption, avoid using them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[cebbert@redhat.com: backport take 2, with parens this time]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-x86/processor_32.h