parisc: Prepare for Block-TLB support on 32-bit kernel
authorHelge Deller <deller@gmx.de>
Fri, 1 Sep 2023 14:09:23 +0000 (16:09 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 7 Sep 2023 07:12:19 +0000 (09:12 +0200)
commit70bd68d5b61a63f87b5e986d9100c8ce46c5df4d
treee37573c48bd791624035c9395e135e7cacc80a51
parent3f091387a39795812aab4303949bbc9baa22c077
parisc: Prepare for Block-TLB support on 32-bit kernel

Change HUGEPAGE_SIZE to become 4 MB on 32-bit kernels, which leads
that kernel code and kernel data will start on 4 MB boundaries.

Although a 32-bit kernel does not support huge pages, most
machines have support for Block-TLBs (BTLB) which allow to
configure the system to use large pages (block TLBs) to minimize
the TLB contention. This is done through calls to PDC and the
32-bit kernel can then call BTLB PDC functions to tell
the machine to optimize the TLBs.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/asm-offsets.c