lkml.org 
[lkml]   [2020]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] powerpc/32s: Don't flush all TLBs when flushing one page
From
Date


Le 31/01/2020 à 16:51, Segher Boessenkool a écrit :
> On Fri, Jan 31, 2020 at 03:37:34PM +0000, Christophe Leroy wrote:
>> When the range is a single page, do a page flush instead.
>
>> + start &= PAGE_MASK;
>> + end = (end - 1) | ~PAGE_MASK;
>> if (!Hash) {
>> - _tlbia();
>> + if (end - start == PAGE_SIZE)
>> + _tlbie(start);
>> + else
>> + _tlbia();
>> return;
>> }
>
> For just one page, you get end - start == 0 actually?
>
>

Oops, good catch.

Indeed you don't get PAGE_SIZE but (PAGE_SIZE - 1) for just one page.

Christophe

\
 
 \ /
  Last update: 2020-01-31 17:16    [W:0.066 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site