Skip to content

Commit

Permalink
[PATCH] powerpc: Remove duplicate definition of set_tb()
Browse files Browse the repository at this point in the history
Somewhere along the line we got two definitions of set_tb(). They look to
be identical although they're not textually identical. So remove the #ifdef
CONFIG_PPC64 version, leaving the common version in time.h.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Oct 26, 2005
1 parent 6d7f58b commit a6f3546
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/asm-powerpc/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,6 @@ static inline void ppc64_runlatch_off(void)
mtspr(SPRN_CTRLT, ctrl);
}
}

static inline void set_tb(unsigned int upper, unsigned int lower)
{
mttbl(0);
mttbu(upper);
mttbl(lower);
}
#endif

#define __get_SP() ({unsigned long sp; \
Expand Down

0 comments on commit a6f3546

Please sign in to comment.