]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Change code model of module to medany to improve data accessing
authorVincent Chen <vincent.chen@sifive.com>
Fri, 21 Feb 2020 02:47:55 +0000 (10:47 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 3 Mar 2020 18:27:46 +0000 (10:27 -0800)
commit6928404121f21c3c6449d9dea0d118dbd47762c9
tree5514fdeb5db500ae542b733ae9aa11ec62fe15f4
parent74be155ec9d2555a8e3eff30bad61e2744ddd9b3
riscv: Change code model of module to medany to improve data accessing

All the loaded module locates in the region [&_end-2G,VMALLOC_END] at
runtime, so the distance from the module start to the end of the kernel
image does not exceed 2GB. Hence, the code model of the kernel module can
be changed to medany to improve the performance data access.

Signed-off-by: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Makefile