Skip to content

Commit

Permalink
[PATCH] ppc64: remove unused argument to create_slbe
Browse files Browse the repository at this point in the history
Remove vsid argument to create_slbe, since it's no longer used.

Spotted by R Sharada.

Signed-off-by: Olof Johansson <olof@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Olof Johansson authored and Linus Torvalds committed May 1, 2005
1 parent 1b29f9d commit bb78cb7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions arch/ppc64/mm/slb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ static inline unsigned long mk_vsid_data(unsigned long ea, unsigned long flags)
return (get_kernel_vsid(ea) << SLB_VSID_SHIFT) | flags;
}

static inline void create_slbe(unsigned long ea, unsigned long vsid,
unsigned long flags, unsigned long entry)
static inline void create_slbe(unsigned long ea, unsigned long flags,
unsigned long entry)
{
asm volatile("slbmte %0,%1" :
: "r" (mk_vsid_data(ea, flags)),
Expand Down Expand Up @@ -145,9 +145,8 @@ void slb_initialize(void)
asm volatile("isync":::"memory");
asm volatile("slbmte %0,%0"::"r" (0) : "memory");
asm volatile("isync; slbia; isync":::"memory");
create_slbe(KERNELBASE, get_kernel_vsid(KERNELBASE), flags, 0);
create_slbe(VMALLOCBASE, get_kernel_vsid(KERNELBASE),
SLB_VSID_KERNEL, 1);
create_slbe(KERNELBASE, flags, 0);
create_slbe(VMALLOCBASE, SLB_VSID_KERNEL, 1);
/* We don't bolt the stack for the time being - we're in boot,
* so the stack is in the bolted segment. By the time it goes
* elsewhere, we'll call _switch() which will bolt in the new
Expand Down

0 comments on commit bb78cb7

Please sign in to comment.