Commit 4bfac368 authored by Olof Johansson's avatar Olof Johansson Committed by Paul Mackerras

[POWERPC] Fix CONFIG_SMP=n build break

Fix two build errors on powerpc allyesconfig + CONFIG_SMP=n:

arch/powerpc/platforms/built-in.o: In function `cpu_affinity_set':
arch/powerpc/platforms/cell/spu_priv1_mmio.c:78: undefined reference to `.iic_get_target_id'
arch/powerpc/platforms/built-in.o: In function `iic_init_IRQ':
arch/powerpc/platforms/cell/interrupt.c:397: undefined reference to `.iic_setup_cpu'
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent aeb4552f
...@@ -158,6 +158,18 @@ static unsigned int iic_get_irq(void) ...@@ -158,6 +158,18 @@ static unsigned int iic_get_irq(void)
return virq; return virq;
} }
void iic_setup_cpu(void)
{
out_be64(&__get_cpu_var(iic).regs->prio, 0xff);
}
u8 iic_get_target_id(int cpu)
{
return per_cpu(iic, cpu).target_id;
}
EXPORT_SYMBOL_GPL(iic_get_target_id);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* Use the highest interrupt priorities for IPI */ /* Use the highest interrupt priorities for IPI */
...@@ -166,29 +178,17 @@ static inline int iic_ipi_to_irq(int ipi) ...@@ -166,29 +178,17 @@ static inline int iic_ipi_to_irq(int ipi)
return IIC_IRQ_TYPE_IPI + 0xf - ipi; return IIC_IRQ_TYPE_IPI + 0xf - ipi;
} }
void iic_setup_cpu(void)
{
out_be64(&__get_cpu_var(iic).regs->prio, 0xff);
}
void iic_cause_IPI(int cpu, int mesg) void iic_cause_IPI(int cpu, int mesg)
{ {
out_be64(&per_cpu(iic, cpu).regs->generate, (0xf - mesg) << 4); out_be64(&per_cpu(iic, cpu).regs->generate, (0xf - mesg) << 4);
} }
u8 iic_get_target_id(int cpu)
{
return per_cpu(iic, cpu).target_id;
}
EXPORT_SYMBOL_GPL(iic_get_target_id);
struct irq_host *iic_get_irq_host(int node) struct irq_host *iic_get_irq_host(int node)
{ {
return iic_host; return iic_host;
} }
EXPORT_SYMBOL_GPL(iic_get_irq_host); EXPORT_SYMBOL_GPL(iic_get_irq_host);
static irqreturn_t iic_ipi_action(int irq, void *dev_id) static irqreturn_t iic_ipi_action(int irq, void *dev_id)
{ {
int ipi = (int)(long)dev_id; int ipi = (int)(long)dev_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment