[PATCH] powerpc/32s: Don't flush all TLBs when flushing one page
Segher Boessenkool
segher at kernel.crashing.org
Sat Feb 1 02:51:50 AEDT 2020
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?
Segher
More information about the Linuxppc-dev
mailing list