From e3edeb67fbd6c522a46a844c569fc41a8a2b6876 Mon Sep 17 00:00:00 2001 From: Noam Camus Date: Tue, 26 Feb 2013 09:22:46 +0200 Subject: ARC: Respect the cpu_id passed for fetching correct cpu info Signed-off-by: Noam Camus Signed-off-by: Vineet Gupta --- arch/arc/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arc') diff --git a/arch/arc/mm/tlb.c b/arch/arc/mm/tlb.c index f71a26d3f68..c03364af936 100644 --- a/arch/arc/mm/tlb.c +++ b/arch/arc/mm/tlb.c @@ -466,7 +466,7 @@ void __cpuinit 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)); -- cgit v1.2.3-70-g09d2