[PATCH 2/6] ARM: keystone2: move update of the phys-to-virt constants into generic code

santosh shilimkar santosh.shilimkar at oracle.com
Mon Apr 13 12:02:01 PDT 2015


On 4/8/2015 2:45 AM, Russell King wrote:
> Make the init_meminfo function return the offset to be applied to the
> phys-to-virt translation constants.  This allows us to move the update
> into generic code, along with the requirements for this update.
>
> This avoids platforms having to know the details of the phys-to-virt
> translation support.
>
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
> ---
>   arch/arm/include/asm/mach/arch.h  |  2 +-
>   arch/arm/mach-keystone/keystone.c | 27 ++++++++++-----------------
>   arch/arm/mm/mmu.c                 | 26 ++++++++++++++++++++++----
>   3 files changed, 33 insertions(+), 22 deletions(-)
>
You already identified couple of improvements on offset calculations.
Apart from that, patch look fine by me.

Acked-by: Santosh Shilimkar <ssantosh at kernel.org>




More information about the linux-arm-kernel mailing list