Florian Fainelli 6712456b97 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>
2022-08-17 15:15:51 +02:00
..
2021-04-07 16:11:05 +02:00
2021-03-10 15:18:40 +01:00
2022-05-04 22:22:59 +02:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2018-10-31 08:54:16 -07:00
2022-02-23 13:08:30 +01:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2022-03-01 10:07:22 +01:00
2022-02-22 09:35:49 +01:00
2022-05-19 19:30:31 +02:00
2022-02-22 09:35:49 +01:00
2022-02-22 09:35:49 +01:00
2022-02-22 09:35:49 +01:00
2022-03-28 17:29:53 -07:00
2020-05-15 14:53:19 +02:00
2022-08-17 15:15:51 +02:00
2021-01-27 21:49:16 +01:00
2020-05-07 11:55:47 +02:00