summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/io.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2022-07-07 23:27:58 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-07-11 11:32:07 +0300
commit8baa65126e19af5ee9f3c07e7bb53da41c39e4b1 (patch)
treea441fb1adf0ca6269d46741f56f68ae1e21ac269 /arch/mips/include/asm/io.h
parentb5eb8b536f91f52d4f3688bcae86bf85ba693a00 (diff)
downloadlinux-8baa65126e19af5ee9f3c07e7bb53da41c39e4b1.tar.xz
MIPS: vdso: Utilize __pa() for gic_pfn
The GIC user offset is mapped into every process' virtual address and is therefore part of the hot-path of arch_setup_additional_pages(). Utilize __pa() such that we are more optimal even when CONFIG_DEBUG_VIRTUAL is enabled, and while at it utilize PFN_DOWN() instead of open-coding the right shift by PAGE_SHIFT. Reported-by: Greg Ungerer <gerg@kernel.org> Suggested-by: Serge Semin <fancer.lancer@gmail.com> Fixes: dfad83cb7193 ("MIPS: Add support for CONFIG_DEBUG_VIRTUAL") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Greg Ungerer <gerg@kernel.org> Tested-by: Greg Ungerer <gerg@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm/io.h')
0 files changed, 0 insertions, 0 deletions