]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Use global mappings for kernel pages
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 26 May 2021 05:49:20 +0000 (05:49 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 30 May 2021 01:17:23 +0000 (18:17 -0700)
commit1c833e4606c404509ab43436d3a36cf819affa49
tree256eb70e8cfe3a32bfee547b78d7897d67330e96
parent739bc6bb60c11f21385b1ef03a54ed24ca11fe4b
riscv: Use global mappings for kernel pages

We map kernel pages into all addresses spages, so they can be marked as
global.  This allows hardware to avoid flushing the kernel mappings when
moving between address spaces.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[Palmer: commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h