aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/xics/icp-native.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/xics/icp-native.c')
-rw-r--r--arch/powerpc/sysdev/xics/icp-native.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c
index 3508321c450..246500eefbf 100644
--- a/arch/powerpc/sysdev/xics/icp-native.c
+++ b/arch/powerpc/sysdev/xics/icp-native.c
@@ -134,7 +134,7 @@ static unsigned int icp_native_get_irq(void)
134 134
135#ifdef CONFIG_SMP 135#ifdef CONFIG_SMP
136 136
137static inline void icp_native_do_message(int cpu, int msg) 137static void icp_native_message_pass(int cpu, int msg)
138{ 138{
139 unsigned long *tgt = &per_cpu(xics_ipi_message, cpu); 139 unsigned long *tgt = &per_cpu(xics_ipi_message, cpu);
140 140
@@ -143,22 +143,6 @@ static inline void icp_native_do_message(int cpu, int msg)
143 icp_native_set_qirr(cpu, IPI_PRIORITY); 143 icp_native_set_qirr(cpu, IPI_PRIORITY);
144} 144}
145 145
146static void icp_native_message_pass(int target, int msg)
147{
148 unsigned int i;
149
150 if (target < NR_CPUS) {
151 icp_native_do_message(target, msg);
152 } else {
153 for_each_online_cpu(i) {
154 if (target == MSG_ALL_BUT_SELF
155 && i == smp_processor_id())
156 continue;
157 icp_native_do_message(i, msg);
158 }
159 }
160}
161
162static irqreturn_t icp_native_ipi_action(int irq, void *dev_id) 146static irqreturn_t icp_native_ipi_action(int irq, void *dev_id)
163{ 147{
164 int cpu = smp_processor_id(); 148 int cpu = smp_processor_id();