aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2005-11-29 14:25:54 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:51:43 -0500
commite40c7f02723e2be5d3144917191aa9fbec5bb64e (patch)
tree1a27c26bb0d56f65ba0f0eb3a4ecbb822d7316c5 /arch
parent9100b205fdc70b300894954ebebbf2709c5ed525 (diff)
[PATCH] powerpc32: fix definition of distribute_irqs
When we select ppc32 under the powerpc architecture we get the error below. This relates to defining distribute_irqs when this configuratiom option is undefined. CC arch/powerpc/sysdev/mpic.o .../arch/powerpc/sysdev/mpic.c: In function `mpic_setup_this_cpu': .../arch/powerpc/sysdev/mpic.c:788: error: `CONFIG_IRQ_ALL_CPUS' undeclared (first use in this function) Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/sysdev/mpic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index 58d1cc2023c8..ae24e2b82c5a 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -45,7 +45,11 @@ static struct mpic *mpic_primary;
45static DEFINE_SPINLOCK(mpic_lock); 45static DEFINE_SPINLOCK(mpic_lock);
46 46
47#ifdef CONFIG_PPC32 /* XXX for now */ 47#ifdef CONFIG_PPC32 /* XXX for now */
48#define distribute_irqs CONFIG_IRQ_ALL_CPUS 48#ifdef CONFIG_IRQ_ALL_CPUS
49#define distribute_irqs (1)
50#else
51#define distribute_irqs (0)
52#endif
49#endif 53#endif
50 54
51/* 55/*