Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/mm: Standardise on MMU_NO_CONTEXT

Use MMU_NO_CONTEXT as the initialiser for mm_context.id on
nohash and hash64.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Michael Ellerman and committed by
Benjamin Herrenschmidt
5e8e7b40 af277149

+3 -2
+2
arch/powerpc/include/asm/tlbflush.h
··· 79 79 80 80 #elif defined(CONFIG_PPC_STD_MMU_64) 81 81 82 + #define MMU_NO_CONTEXT 0 83 + 82 84 /* 83 85 * TLB flushing for 64-bit hash-MMU CPUs 84 86 */
+1 -2
arch/powerpc/mm/mmu_context_hash64.c
··· 31 31 * Each segment contains 2^28 bytes. Each context maps 2^44 bytes, 32 32 * so we can support 2^19-1 contexts (19 == 35 + 28 - 44). 33 33 */ 34 - #define NO_CONTEXT 0 35 34 #define MAX_CONTEXT ((1UL << 19) - 1) 36 35 37 36 int __init_new_context(void) ··· 94 95 { 95 96 __destroy_context(mm->context.id); 96 97 subpage_prot_free(mm); 97 - mm->context.id = NO_CONTEXT; 98 + mm->context.id = MMU_NO_CONTEXT; 98 99 }