powerpc/mm/hash: Don't open code VMALLOC_INDEX
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 12 Apr 2017 04:40:22 +0000 (10:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 13 Apr 2017 13:34:31 +0000 (23:34 +1000)
We have a #define for it, so use it.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c

index 98ae810b8c21398b47e6348d6937e2b19629d9d4..654a0d7ba0e70b4f6152f83cfe5467023e0b4b58 100644 (file)
@@ -131,7 +131,7 @@ static void __slb_flush_and_rebolt(void)
                     "slbmte    %2,%3\n"
                     "isync"
                     :: "r"(mk_vsid_data(VMALLOC_START, mmu_kernel_ssize, vflags)),
-                       "r"(mk_esid_data(VMALLOC_START, mmu_kernel_ssize, 1)),
+                       "r"(mk_esid_data(VMALLOC_START, mmu_kernel_ssize, VMALLOC_INDEX)),
                        "r"(ksp_vsid_data),
                        "r"(ksp_esid_data)
                     : "memory");