diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2022-07-07 23:27:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 16:15:51 +0300 |
commit | 6712456b97a8b119c8e37150f24615693dc98a7f (patch) | |
tree | 69ce80f51d2a2b24e01453f0bb6a2c9e2ce3494d /sound | |
parent | 24578ae33973ee1947e7138863c2e8c6cb134616 (diff) | |
download | linux-6712456b97a8b119c8e37150f24615693dc98a7f.tar.xz |
MIPS: vdso: Utilize __pa() for gic_pfn
[ Upstream commit 8baa65126e19af5ee9f3c07e7bb53da41c39e4b1 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions