* [PATCH] ARM: MM: Add ARM_L1_CACHE_SHIFT_BY6 for handle inside each ARCH Kconfig
@ 2010-01-27 23:34 Kukjin Kim
2010-01-27 23:50 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Kukjin Kim @ 2010-01-27 23:34 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds ARM_L1_CACHE_SHIFT_BY6 into arch/arm/Kconfig. Basically,
ARM L1 cache line size is 32Bytes. Therefore, whenever new ARCH which
has 64Bytes L1 cache line size is added, have to set ARM_L1_CACHE_SHIFT
to 6. That is, have to add/modify arch/arm/mm/Kconfig.
This patch is for handle it in each ARCH Kconfig.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
---
arch/arm/Kconfig | 5 +++++
arch/arm/mm/Kconfig | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a5602ec..c7e98ed 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -161,6 +161,11 @@ config ARCH_MTD_XIP
config GENERIC_HARDIRQS_NO__DO_IRQ
def_bool y
+config ARM_L1_CACHE_SHIFT_BY6
+ bool
+ help
+ Setting ARM L1 cache line size to 64 Bytes.
+
if OPROFILE
config OPROFILE_ARMV6
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index 91617f7..ad0b8d3 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -779,5 +779,5 @@ config CACHE_XSC3L2
config ARM_L1_CACHE_SHIFT
int
- default 6 if ARCH_OMAP3 || ARCH_S5PC1XX
+ default 6 if ARCH_OMAP3 || ARCH_S5PC1XX || ARM_L1_CACHE_SHIFT_BY6
default 5
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: MM: Add ARM_L1_CACHE_SHIFT_BY6 for handle inside each ARCH Kconfig
2010-01-27 23:34 [PATCH] ARM: MM: Add ARM_L1_CACHE_SHIFT_BY6 for handle inside each ARCH Kconfig Kukjin Kim
@ 2010-01-27 23:50 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2010-01-27 23:50 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Jan 28, 2010 at 08:34:11AM +0900, Kukjin Kim wrote:
> This patch adds ARM_L1_CACHE_SHIFT_BY6 into arch/arm/Kconfig. Basically,
> ARM L1 cache line size is 32Bytes. Therefore, whenever new ARCH which
> has 64Bytes L1 cache line size is added, have to set ARM_L1_CACHE_SHIFT
> to 6. That is, have to add/modify arch/arm/mm/Kconfig.
> This patch is for handle it in each ARCH Kconfig.
(a) please don't introduce new stuff which doesn't appear to be used;
if you decide not to send the patch which uses whatever you've
added, it goes unnoticed and just adds unnecessary bloat to the
kernel.
(b) please drop the 'BY' from the name.
(c) it would make sense to convert the existing users (which would
sort point a.)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-27 23:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 23:34 [PATCH] ARM: MM: Add ARM_L1_CACHE_SHIFT_BY6 for handle inside each ARCH Kconfig Kukjin Kim
2010-01-27 23:50 ` Russell King - ARM Linux
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).