aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/hw_irq.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/hw_irq.h b/arch/powerpc/include/asm/hw_irq.h
index b43076ff92c9..cb32d571c9c7 100644
--- a/arch/powerpc/include/asm/hw_irq.h
+++ b/arch/powerpc/include/asm/hw_irq.h
@@ -142,10 +142,17 @@ static inline unsigned long get_perf_counter_pending(void)
142 return x; 142 return x;
143} 143}
144 144
145static inline void set_perf_counter_pending(int x) 145static inline void set_perf_counter_pending(void)
146{ 146{
147 asm volatile("stb %0,%1(13)" : : 147 asm volatile("stb %0,%1(13)" : :
148 "r" (x), 148 "r" (1),
149 "i" (offsetof(struct paca_struct, perf_counter_pending)));
150}
151
152static inline void clear_perf_counter_pending(void)
153{
154 asm volatile("stb %0,%1(13)" : :
155 "r" (0),
149 "i" (offsetof(struct paca_struct, perf_counter_pending))); 156 "i" (offsetof(struct paca_struct, perf_counter_pending)));
150} 157}
151 158
@@ -158,7 +165,8 @@ static inline unsigned long get_perf_counter_pending(void)
158 return 0; 165 return 0;
159} 166}
160 167
161static inline void set_perf_counter_pending(int x) {} 168static inline void set_perf_counter_pending(void) {}
169static inline void clear_perf_counter_pending(void) {}
162static inline void perf_counter_do_pending(void) {} 170static inline void perf_counter_do_pending(void) {}
163#endif /* CONFIG_PERF_COUNTERS */ 171#endif /* CONFIG_PERF_COUNTERS */
164 172