[MIPS] SMTC: Fix TLB sizing bug for TLB of 64 >= entries

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+5 -2
+5 -2
arch/mips/kernel/smtc.c
··· 270 270 * of their initialization in smtc_cpu_setup(). 271 271 */ 272 272 273 - tlbsiz = tlbsiz & 0x3f; /* MIPS32 limits TLB indices to 64 */ 274 - cpu_data[0].tlbsize = tlbsiz; 273 + /* MIPS32 limits TLB indices to 64 */ 274 + if (tlbsiz > 64) 275 + tlbsiz = 64; 276 + cpu_data[0].tlbsize = current_cpu_data.tlbsize = tlbsiz; 275 277 smtc_status |= SMTC_TLB_SHARED; 278 + local_flush_tlb_all(); 276 279 277 280 printk("TLB of %d entry pairs shared by %d VPEs\n", 278 281 tlbsiz, vpes);