diff options
author | Paul Walmsley <paul.walmsley@sifive.com> | 2019-08-08 04:07:34 +0200 |
---|---|---|
committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-08-13 23:03:52 +0200 |
commit | eb93685847a9055283d05951c1b205e737f38533 (patch) | |
tree | f39d6b813b5c7fae9a70c7f5cce7176034fe868b /arch/arm64/boot | |
parent | Linux 5.3-rc4 (diff) | |
download | linux-eb93685847a9055283d05951c1b205e737f38533.tar.xz linux-eb93685847a9055283d05951c1b205e737f38533.zip |
riscv: fix flush_tlb_range() end address for flush_tlb_page()
The RISC-V kernel implementation of flush_tlb_page() when CONFIG_SMP
is set is wrong. It passes zero to flush_tlb_range() as the final
address to flush, but it should be at least 'addr'.
Some other Linux architecture ports use the beginning address to
flush, plus PAGE_SIZE, as the final address to flush. This might
flush slightly more than what's needed, but it seems unlikely that
being more clever would improve anything. So let's just take that
implementation for now.
While here, convert the macro into a static inline function, primarily
to avoid unintentional multiple evaluations of 'addr'.
This second version of the patch fixes a coding style issue found by
Christoph Hellwig <hch@lst.de>.
Reported-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/arm64/boot')
0 files changed, 0 insertions, 0 deletions