]> 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)
commit4cd6af80b28a2b30cdd94f0020a606044359974b
tree5514fdeb5db500ae542b733ae9aa11ec62fe15f4
parent2f468a58133474d85c16361e65fef8f941f9dd5a
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