Patchwork [4/4] sparc: drop get_tbr() in traps.h

login
register
mail settings
Submitter Sam Ravnborg
Date Jan. 1, 2009, 10:40 p.m.
Message ID <1230849630-22482-4-git-send-email-sam@ravnborg.org>
Download mbox | patch
Permalink /patch/16241/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sam Ravnborg - Jan. 1, 2009, 10:40 p.m.
get_tbr() has no users in the whole tree -drop it.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
 arch/sparc/include/asm/traps.h |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
David Miller - Jan. 3, 2009, 5:33 a.m.
From: Sam Ravnborg <sam@ravnborg.org>
Date: Thu,  1 Jan 2009 23:40:30 +0100

> get_tbr() has no users in the whole tree -drop it.
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Also applied, thanks a lot Sam.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/include/asm/traps.h b/arch/sparc/include/asm/traps.h
index 4becd66..3aa62dd 100644
--- a/arch/sparc/include/asm/traps.h
+++ b/arch/sparc/include/asm/traps.h
@@ -22,13 +22,6 @@  struct tt_entry {
 /* We set this to _start in system setup. */
 extern struct tt_entry *sparc_ttable;
 
-static inline unsigned long get_tbr(void)
-{
-	unsigned long tbr;
-
-	__asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (tbr));
-	return tbr;
-}
 #endif /* (__KERNEL__) */
 #endif /* !(__ASSEMBLY__) */