public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* change last level cache alignment on x86?
@ 2012-03-01  8:33 Alex,Shi
  2012-03-02  7:30 ` Alex Shi
  0 siblings, 1 reply; 6+ messages in thread
From: Alex,Shi @ 2012-03-01  8:33 UTC (permalink / raw)
  To: tglx, hpa, mingo; +Cc: linux-kernel@vger.kernel.org, x86, asit.k.mallick

Currently last level defined in kernel is still 128 bytes, but actually
I checked intel's core2, NHM, SNB, atom, serial platforms, all of them
are using 64 bytes. 
I did not get detailed info on AMD platforms. Guess someone like to give
the info here. So, Is if it possible to do the similar following changes
to use 64 byte cache alignment in kernel?

===
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index 3c57033..f342a5a 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -303,7 +303,7 @@ config X86_GENERIC
 config X86_INTERNODE_CACHE_SHIFT
 	int
 	default "12" if X86_VSMP
-	default "7" if NUMA
+	default "7" if NUMA && (MPENTIUM4)
 	default X86_L1_CACHE_SHIFT
 
 config X86_CMPXCHG



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

end of thread, other threads:[~2012-03-03 11:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01  8:33 change last level cache alignment on x86? Alex,Shi
2012-03-02  7:30 ` Alex Shi
2012-03-02  8:12   ` Ingo Molnar
2012-03-02 14:42     ` Alex Shi
2012-03-02 15:25       ` Ingo Molnar
2012-03-03 11:30         ` Alex Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox