]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARC: Respect the cpu_id passed for fetching correct cpu info
authorNoam Camus <noamc@ezchip.com>
Tue, 26 Feb 2013 07:22:46 +0000 (09:22 +0200)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 18 Mar 2013 09:18:45 +0000 (14:48 +0530)
Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/tlb.c

index 9b9ce23f4ec3b9a012a578794341583251dbf778..8cf5f2313135ccf88eff4c922d640e02f1005668 100644 (file)
@@ -466,7 +466,7 @@ void __init read_decode_mmu_bcr(void)
 char *arc_mmu_mumbojumbo(int cpu_id, char *buf, int len)
 {
        int n = 0;
-       struct cpuinfo_arc_mmu *p_mmu = &cpuinfo_arc700[smp_processor_id()].mmu;
+       struct cpuinfo_arc_mmu *p_mmu = &cpuinfo_arc700[cpu_id].mmu;
 
        n += scnprintf(buf + n, len - n, "ARC700 MMU [v%x]\t: %dk PAGE, ",
                       p_mmu->ver, TO_KB(p_mmu->pg_sz));