]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
ARM: mm: Fix ECC mem policy printk
authorMichal Simek <michal.simek@xilinx.com>
Thu, 10 Oct 2013 09:59:46 +0000 (11:59 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 19 Nov 2013 07:04:58 +0000 (08:04 +0100)
ECC policy can be applied to the whole system
when this bit is implemented by SoC vendor
(IMP - bit 9 - in L1 page table entry format).
When this bit is not implemented by SoC vendor
it doesn't mean that system has no other way
how to do ECC.
This patch ensures to show this message only when ECC
is requested via cmd line ecc=on and runs on
appropriate ARM core.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mm/mmu.c

index b1d17eeb59b895cd429e762d082d6c5c56c3ff57..324fc8597420b5adcc8998d120b4f9906864b9db 100644 (file)
@@ -556,8 +556,8 @@ static void __init build_mem_type_table(void)
                mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_WB;
                break;
        }
-       printk("Memory policy: ECC %sabled, Data cache %s\n",
-               ecc_mask ? "en" : "dis", cp->policy);
+       pr_info("Memory policy: %sData cache %s\n",
+               ecc_mask ? "ECC enabled, " : "", cp->policy);
 
        for (i = 0; i < ARRAY_SIZE(mem_types); i++) {
                struct mem_type *t = &mem_types[i];