diff options
Diffstat (limited to 'arch/mips/kernel/smtc.c')
-rw-r--r-- | arch/mips/kernel/smtc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 44238ab2fc99..c37e83b173e9 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
@@ -270,9 +270,12 @@ void smtc_configure_tlb(void) | |||
270 | * of their initialization in smtc_cpu_setup(). | 270 | * of their initialization in smtc_cpu_setup(). |
271 | */ | 271 | */ |
272 | 272 | ||
273 | tlbsiz = tlbsiz & 0x3f; /* MIPS32 limits TLB indices to 64 */ | 273 | /* MIPS32 limits TLB indices to 64 */ |
274 | cpu_data[0].tlbsize = tlbsiz; | 274 | if (tlbsiz > 64) |
275 | tlbsiz = 64; | ||
276 | cpu_data[0].tlbsize = current_cpu_data.tlbsize = tlbsiz; | ||
275 | smtc_status |= SMTC_TLB_SHARED; | 277 | smtc_status |= SMTC_TLB_SHARED; |
278 | local_flush_tlb_all(); | ||
276 | 279 | ||
277 | printk("TLB of %d entry pairs shared by %d VPEs\n", | 280 | printk("TLB of %d entry pairs shared by %d VPEs\n", |
278 | tlbsiz, vpes); | 281 | tlbsiz, vpes); |