|
|
|
Re: [PATCH] MIPS: Flush huge TLB | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hello. On 18-11-2011 17:15, Hillf Danton wrote:
When flushing TLB, if @vma is backed by huge page, we could flush huge TLB, due to that huge page is defined to be far from normal page.
Signed-off-by: Hillf Danton<dhillf@xxxxxxxxx> ---
--- a/arch/mips/mm/tlb-r4k.c Mon May 30 21:17:04 2011 +++ b/arch/mips/mm/tlb-r4k.c Fri Nov 18 21:13:13 2011 @@ -120,22 +120,30 @@ void local_flush_tlb_range(struct vm_are
[...]
write_c0_entryhi(start | newpid); - start += (PAGE_SIZE<< 1); + if (huge) + start += HPAGE_SIZE; + else + start += (PAGE_SIZE << 1);
Parens not needed. WBR, Sergei
[Linux MIPS Home] [LKML Archive] [Linux ARM] [Linux] [Git] [Photo] [Yosemite News] [Linux SCSI] [Linux Hams]
![]() |
![]() |