Skip to content

Commit

Permalink
powerpc/mm/hash: Rename get_ea_context to get_user_context
Browse files Browse the repository at this point in the history
We will be adding get_kernel_context later. Update function name to indicate
this handle context allocation user space address.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Aneesh Kumar K.V authored and Michael Ellerman committed Oct 14, 2018
1 parent e15a4fe commit c9f8073
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/include/asm/book3s/64/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ extern void radix_init_pseries(void);
static inline void radix_init_pseries(void) { };
#endif

static inline int get_ea_context(mm_context_t *ctx, unsigned long ea)
static inline int get_user_context(mm_context_t *ctx, unsigned long ea)
{
int index = ea >> MAX_EA_BITS_PER_CONTEXT;

Expand All @@ -223,7 +223,7 @@ static inline int get_ea_context(mm_context_t *ctx, unsigned long ea)
static inline unsigned long get_user_vsid(mm_context_t *ctx,
unsigned long ea, int ssize)
{
unsigned long context = get_ea_context(ctx, ea);
unsigned long context = get_user_context(ctx, ea);

return get_vsid(context, ea, ssize);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static inline bool need_extra_context(struct mm_struct *mm, unsigned long ea)
{
int context_id;

context_id = get_ea_context(&mm->context, ea);
context_id = get_user_context(&mm->context, ea);
if (!context_id)
return true;
return false;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/mm/slb.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ static long slb_allocate_user(struct mm_struct *mm, unsigned long ea)
if (ea >= mm->context.slb_addr_limit)
return -EFAULT;

context = get_ea_context(&mm->context, ea);
context = get_user_context(&mm->context, ea);
if (!context)
return -EFAULT;

Expand Down

0 comments on commit c9f8073

Please sign in to comment.