Skip to content
Commit 8baa6512 authored by Florian Fainelli's avatar Florian Fainelli Committed by Thomas Bogendoerfer
Browse files

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: default avatarGreg Ungerer <gerg@kernel.org>
Suggested-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Fixes: dfad83cb ("MIPS: Add support for CONFIG_DEBUG_VIRTUAL")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarGreg Ungerer <gerg@kernel.org>
Tested-by: default avatarGreg Ungerer <gerg@kernel.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent b5eb8b53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment