aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mmu_context_hash64.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ozlabs.org>2011-04-12 15:00:04 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-04-20 02:59:20 -0400
commit5e8e7b404ac965be45e25d5538676151de89aefb (patch)
treecd52be505e33150a2bd2afb271ee6e93b2984498 /arch/powerpc/mm/mmu_context_hash64.c
parentaf2771493a1bf79cd9a1ab4f30327c428b5bd67c (diff)
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>
Diffstat (limited to 'arch/powerpc/mm/mmu_context_hash64.c')
-rw-r--r--arch/powerpc/mm/mmu_context_hash64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/mm/mmu_context_hash64.c b/arch/powerpc/mm/mmu_context_hash64.c
index 2535828aa84b..c5859448a0ab 100644
--- a/arch/powerpc/mm/mmu_context_hash64.c
+++ b/arch/powerpc/mm/mmu_context_hash64.c
@@ -31,7 +31,6 @@ static DEFINE_IDA(mmu_context_ida);
31 * Each segment contains 2^28 bytes. Each context maps 2^44 bytes, 31 * Each segment contains 2^28 bytes. Each context maps 2^44 bytes,
32 * so we can support 2^19-1 contexts (19 == 35 + 28 - 44). 32 * so we can support 2^19-1 contexts (19 == 35 + 28 - 44).
33 */ 33 */
34#define NO_CONTEXT 0
35#define MAX_CONTEXT ((1UL << 19) - 1) 34#define MAX_CONTEXT ((1UL << 19) - 1)
36 35
37int __init_new_context(void) 36int __init_new_context(void)
@@ -95,5 +94,5 @@ void destroy_context(struct mm_struct *mm)
95{ 94{
96 __destroy_context(mm->context.id); 95 __destroy_context(mm->context.id);
97 subpage_prot_free(mm); 96 subpage_prot_free(mm);
98 mm->context.id = NO_CONTEXT; 97 mm->context.id = MMU_NO_CONTEXT;
99} 98}