aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-cns3xxx/cns3420vb.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@mvista.com>2011-07-06 08:45:09 -0400
committerAnton Vorontsov <avorontsov@mvista.com>2011-07-07 10:48:38 -0400
commit93e85d8e902e1a4468c6ade5c6ec3dd3055a489f (patch)
treed6ee8fdc4609b35f7b903d9b1e8cb07f4abe12db /arch/arm/mach-cns3xxx/cns3420vb.c
parent00d2711d700ae77b5bb66ea7c73eaa2cf155fa97 (diff)
ARM: cns3xxx: Add support for L2 Cache Controller
CNS3xxx SOCs have L310-compatible cache controller, so let's use it. With this patch benchmarking with 'gzip' shows that performance is doubled, and I'm still able to boot full-fledged userland over NFS (using PCIe NIC), so the support should be pretty robust. p.s. While CNS3xxx reports that it has PL310, it still needs to wait on cache line operations, so we should not select 'CACHE_PL310', which is a micro-optimization that removes these waits for v7 CPUs. Someday we'd better rename CACHE_PL310 Kconfig option into NO_CACHE_WAIT or something less ambiguous. Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
Diffstat (limited to 'arch/arm/mach-cns3xxx/cns3420vb.c')
-rw-r--r--arch/arm/mach-cns3xxx/cns3420vb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-cns3xxx/cns3420vb.c b/arch/arm/mach-cns3xxx/cns3420vb.c
index 08e5c8759502..4b804baa5f80 100644
--- a/arch/arm/mach-cns3xxx/cns3420vb.c
+++ b/arch/arm/mach-cns3xxx/cns3420vb.c
@@ -170,6 +170,8 @@ static struct platform_device *cns3420_pdevs[] __initdata = {
170 170
171static void __init cns3420_init(void) 171static void __init cns3420_init(void)
172{ 172{
173 cns3xxx_l2x0_init();
174
173 platform_add_devices(cns3420_pdevs, ARRAY_SIZE(cns3420_pdevs)); 175 platform_add_devices(cns3420_pdevs, ARRAY_SIZE(cns3420_pdevs));
174 176
175 cns3xxx_ahci_init(); 177 cns3xxx_ahci_init();