aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-05-14 17:23:57 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-14 17:23:57 -0400
commit3bd7df8a3ec4d3aef98067be4e7a42cd360d5c39 (patch)
tree0270c6eaba5d7589818c8603d4e1165f1a9aed89 /arch
parent51f19cfa76d7d20ec767719a427e3d4f450fd5de (diff)
sparc32: Kill unused hard_smp{4m,4d,leon}_processor_id() inlined.
Reported-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/include/asm/smp_32.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/sparc/include/asm/smp_32.h b/arch/sparc/include/asm/smp_32.h
index b9cf69704022..b73da3c5f10a 100644
--- a/arch/sparc/include/asm/smp_32.h
+++ b/arch/sparc/include/asm/smp_32.h
@@ -103,35 +103,6 @@ static inline int cpu_logical_map(int cpu)
103 return cpu; 103 return cpu;
104} 104}
105 105
106static inline int hard_smp4m_processor_id(void)
107{
108 int cpuid;
109
110 __asm__ __volatile__("rd %%tbr, %0\n\t"
111 "srl %0, 12, %0\n\t"
112 "and %0, 3, %0\n\t" :
113 "=&r" (cpuid));
114 return cpuid;
115}
116
117static inline int hard_smp4d_processor_id(void)
118{
119 int cpuid;
120
121 __asm__ __volatile__("lda [%%g0] %1, %0\n\t" :
122 "=&r" (cpuid) : "i" (ASI_M_VIKING_TMP1));
123 return cpuid;
124}
125
126extern inline int hard_smpleon_processor_id(void)
127{
128 int cpuid;
129 __asm__ __volatile__("rd %%asr17,%0\n\t"
130 "srl %0,28,%0" :
131 "=&r" (cpuid) : );
132 return cpuid;
133}
134
135extern int hard_smp_processor_id(void); 106extern int hard_smp_processor_id(void);
136 107
137#define raw_smp_processor_id() (current_thread_info()->cpu) 108#define raw_smp_processor_id() (current_thread_info()->cpu)