Patchwork [-V4,12/12] arch/powerpc: properly isolate kernel and user proto-VSID

login
register
mail settings
Submitter Aneesh Kumar K.V
Date July 25, 2012, 3:21 p.m.
Message ID <87txwv7tp6.fsf@skywalker.in.ibm.com>
Download mbox | patch
Permalink /patch/173200/
State Accepted
Commit f03839236392f5bc6107af5c9f749e8a48cd616c
Headers show

Comments

Aneesh Kumar K.V - July 25, 2012, 3:21 p.m.
MAX_CONTEXT change in this patch was not related. So may be we need it 
to be a separate patch ?

-aneesh

From c67fb1b973c317f114ee256110cfc1b016dc1841 Mon Sep 17 00:00:00 2001
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Date: Wed, 25 Jul 2012 18:34:12 +0530
Subject: [PATCH -V4] arch/powerpc: Replace open coded CONTEXT_BITS value

To clarify the meaning for future readers, replace the open coded
19 with CONTEXT_BITS

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 arch/powerpc/mm/mmu_context_hash64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/powerpc/mm/mmu_context_hash64.c b/arch/powerpc/mm/mmu_context_hash64.c
index 40677aa..daa076c 100644
--- a/arch/powerpc/mm/mmu_context_hash64.c
+++ b/arch/powerpc/mm/mmu_context_hash64.c
@@ -34,7 +34,7 @@  static DEFINE_IDA(mmu_context_ida);
  * Each segment contains 2^28 bytes.  Each context maps 2^44 bytes,
  * so we can support 2^19-1 contexts (19 == 35 + 28 - 44).
  */
-#define MAX_CONTEXT	((1UL << 19) - 1)
+#define MAX_CONTEXT	((1UL << CONTEXT_BITS) - 1)
 
 int __init_new_context(void)
 {