]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/kernel/setup.c
[ARM] Print details relevant to how we handle the cache
[linux-2.6-omap-h63xx.git] / arch / arm / kernel / setup.c
index 5b121d81f9eb375c5a2e3262ba65f18b296cfaa5..2f5d3641f2ed304fb0cb74698f78d95b641ec5d3 100644 (file)
@@ -248,6 +248,15 @@ static void __init cacheid_init(void)
        } else {
                cacheid = CACHEID_VIVT;
        }
+
+       printk("CPU: %s data cache, %s instruction cache\n",
+               cache_is_vivt() ? "VIVT" :
+               cache_is_vipt_aliasing() ? "VIPT aliasing" :
+               cache_is_vipt_nonaliasing() ? "VIPT nonaliasing" : "unknown",
+               cache_is_vivt() ? "VIVT" :
+               icache_is_vivt_asid_tagged() ? "VIVT ASID tagged" :
+               cache_is_vipt_aliasing() ? "VIPT aliasing" :
+               cache_is_vipt_nonaliasing() ? "VIPT nonaliasing" : "unknown");
 }
 
 /*