]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: vdso: Utilize __pa() for gic_pfn
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 7 Jul 2022 20:27:58 +0000 (13:27 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 11 Jul 2022 08:32:07 +0000 (10:32 +0200)
commita911ad58a1d56086a06cc4a178e35ccd3a49d4cb
treea441fb1adf0ca6269d46741f56f68ae1e21ac269
parentb235da18dd32c4e93eb5c8d32c6716dce4a94859
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: f6c79b8d8bc7 ("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>
arch/mips/kernel/vdso.c