Re: [v2 PATCH] RISC-V: Optimize tlb flush path.
From: Andreas Schwab
Date: Tue Aug 20 2019 - 03:15:06 EST
On Aug 19 2019, "hch@xxxxxxxxxxxxx" <hch@xxxxxxxxxxxxx> wrote:
> This looks a little odd to m and assumes we never pass a size smaller
> than PAGE_SIZE. Whule that is probably true, why not something like:
>
> if (size < PAGE_SIZE && size != -1)
ITYM size <= PAGE_SIZE. And since size is unsigned it cannot be == -1
at the same time.
> local_flush_tlb_page(start);
> else
> local_flush_tlb_all();
>
> ?
Andreas.
--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."