Re: [PATCH v4 2/3] RISC-V: Issue a local tlbflush if possible.

From: Christoph Hellwig
Date: Thu Aug 22 2019 - 09:44:34 EST


On Thu, Aug 22, 2019 at 12:51:50AM -0700, Atish Patra wrote:
> In RISC-V, tlb flush happens via SBI which is expensive. If the local
> cpu is the only cpu in cpumask, there is no need to invoke a SBI call.
>
> Just do a local flush and return.
>
> Signed-off-by: Atish Patra <atish.patra@xxxxxxx>

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>