linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ix86: improve determination of X86_MINIMUM_CPU_FAMILY
@ 2012-09-07  6:48 Jan Beulich
  2012-09-07  7:16 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2012-09-07  6:48 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

This was quite a bit off: While I never build for anything older than
i686 (other than for specifically trying certain things out), one of my
32-bit configs (tailor made for a VIA system) ended up having this set
to 4. Others, customized for more mainstream systems, had this set to 5.

Once at it, also drop the unnecessary dependencies on X86_32 - that
symbol being the inverse of X86_64, and Kconfig default determination
working by a first match algorithm, X86_64 being dealt with in the very
first selection makes it unnecessary to have that dependency in all
subsequent default selections.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

---
 arch/x86/Kconfig.cpu |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- 3.6-rc4/arch/x86/Kconfig.cpu
+++ 3.6-rc4-x86-minimum-cpu-family/arch/x86/Kconfig.cpu
@@ -409,9 +409,9 @@ config X86_CMOV
 config X86_MINIMUM_CPU_FAMILY
 	int
 	default "64" if X86_64
-	default "6" if X86_32 && X86_P6_NOP
-	default "5" if X86_32 && X86_CMPXCHG64
-	default "4" if X86_32 && (X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK)
+	default "6" if X86_P6_NOP || X86_CMOV
+	default "5" if X86_CMPXCHG64 || X86_TSC
+	default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK
 	default "3"
 
 config X86_DEBUGCTLMSR




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-07 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07  6:48 [PATCH] ix86: improve determination of X86_MINIMUM_CPU_FAMILY Jan Beulich
2012-09-07  7:16 ` H. Peter Anvin
2012-09-07  7:31   ` Jan Beulich
2012-09-07 15:08     ` H. Peter Anvin
2012-09-07  7:36   ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).