[PATCH 1/5] powerpc: Remove duplicate definition of set_tb()

Michael Ellerman michael at ellerman.id.au
Mon Oct 24 15:07:26 EST 2005


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 at ellerman.id.au>
---

 include/asm-powerpc/reg.h |    7 -------
 1 files changed, 7 deletions(-)

Index: kexec/include/asm-powerpc/reg.h
===================================================================
--- kexec.orig/include/asm-powerpc/reg.h
+++ kexec/include/asm-powerpc/reg.h
@@ -585,13 +585,6 @@ static inline void ppc64_runlatch_off(vo
 		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; \



More information about the Linuxppc64-dev mailing list