ARM: keystone2: move address space switch printk into generic code
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 4 Apr 2015 09:25:28 +0000 (10:25 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 1 Jun 2015 22:45:54 +0000 (23:45 +0100)
There is no point platform code doing this, let's move it into the
generic code so it doesn't get duplicated.

Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Tested-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-keystone/keystone.c
arch/arm/mm/mmu.c

index baa0fbc..af8c92b 100644 (file)
@@ -93,9 +93,6 @@ static long long __init keystone_init_meminfo(void)
        /* Populate the arch idmap hook */
        arch_virt_to_idmap = keystone_virt_to_idmap;
 
-       pr_info("Switching to high address space at 0x%llx\n",
-               (u64)PHYS_OFFSET + (u64)offset);
-
        return offset;
 }
 
index 38ccbdf..91262d2 100644 (file)
@@ -1424,6 +1424,9 @@ void __init early_paging_init(const struct machine_desc *mdesc,
        if (offset == 0)
                return;
 
+       pr_info("Switching physical address space to 0x%08llx\n",
+               (u64)PHYS_OFFSET + offset);
+
        /* Re-set the phys pfn offset, and the pv offset */
        __pv_offset += offset;
        __pv_phys_pfn_offset += PFN_DOWN(offset);