Commit 8e9bd4e6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Remove useless argument from __ste_allocate()

From: David Gibson <david@gibson.dropbear.id.au>

In the current ppc64 code the function __ste_allocate() in
arch/ppc64/mm/stab.c takes a context parameter which is never used.  This
patch removes it.
parent f13f8135
...@@ -141,8 +141,7 @@ int make_ste(unsigned long stab, unsigned long esid, unsigned long vsid) ...@@ -141,8 +141,7 @@ int make_ste(unsigned long stab, unsigned long esid, unsigned long vsid)
return (global_entry | (castout_entry & 0x7)); return (global_entry | (castout_entry & 0x7));
} }
static inline void __ste_allocate(unsigned long esid, unsigned long vsid, static inline void __ste_allocate(unsigned long esid, unsigned long vsid)
mm_context_t context)
{ {
unsigned char stab_entry; unsigned char stab_entry;
unsigned long *offset; unsigned long *offset;
...@@ -185,7 +184,7 @@ int ste_allocate(unsigned long ea) ...@@ -185,7 +184,7 @@ int ste_allocate(unsigned long ea)
} }
esid = GET_ESID(ea); esid = GET_ESID(ea);
__ste_allocate(esid, vsid, context); __ste_allocate(esid, vsid);
/* Order update */ /* Order update */
asm volatile("sync":::"memory"); asm volatile("sync":::"memory");
...@@ -215,7 +214,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) ...@@ -215,7 +214,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm)
if (!IS_VALID_EA(pc) || (REGION_ID(pc) >= KERNEL_REGION_ID)) if (!IS_VALID_EA(pc) || (REGION_ID(pc) >= KERNEL_REGION_ID))
return; return;
vsid = get_vsid(mm->context, pc); vsid = get_vsid(mm->context, pc);
__ste_allocate(pc_esid, vsid, mm->context); __ste_allocate(pc_esid, vsid);
if (pc_esid == stack_esid) if (pc_esid == stack_esid)
return; return;
...@@ -223,7 +222,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) ...@@ -223,7 +222,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm)
if (!IS_VALID_EA(stack) || (REGION_ID(stack) >= KERNEL_REGION_ID)) if (!IS_VALID_EA(stack) || (REGION_ID(stack) >= KERNEL_REGION_ID))
return; return;
vsid = get_vsid(mm->context, stack); vsid = get_vsid(mm->context, stack);
__ste_allocate(stack_esid, vsid, mm->context); __ste_allocate(stack_esid, vsid);
if (pc_esid == unmapped_base_esid || stack_esid == unmapped_base_esid) if (pc_esid == unmapped_base_esid || stack_esid == unmapped_base_esid)
return; return;
...@@ -232,7 +231,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm) ...@@ -232,7 +231,7 @@ static void preload_stab(struct task_struct *tsk, struct mm_struct *mm)
(REGION_ID(unmapped_base) >= KERNEL_REGION_ID)) (REGION_ID(unmapped_base) >= KERNEL_REGION_ID))
return; return;
vsid = get_vsid(mm->context, unmapped_base); vsid = get_vsid(mm->context, unmapped_base);
__ste_allocate(unmapped_base_esid, vsid, mm->context); __ste_allocate(unmapped_base_esid, vsid);
/* Order update */ /* Order update */
asm volatile("sync" : : : "memory"); asm volatile("sync" : : : "memory");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment