summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2005-11-29 20:25:54 +0100
committerPaul Mackerras <paulus@samba.org>2006-01-09 04:51:43 +0100
commite40c7f02723e2be5d3144917191aa9fbec5bb64e (patch)
tree1a27c26bb0d56f65ba0f0eb3a4ecbb822d7316c5 /arch/powerpc/sysdev
parent[PATCH] powerpc32: clean up available memory models (diff)
downloadlinux-e40c7f02723e2be5d3144917191aa9fbec5bb64e.tar.xz
linux-e40c7f02723e2be5d3144917191aa9fbec5bb64e.zip
[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/powerpc/sysdev')
-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;
static DEFINE_SPINLOCK(mpic_lock);
#ifdef CONFIG_PPC32 /* XXX for now */
-#define distribute_irqs CONFIG_IRQ_ALL_CPUS
+#ifdef CONFIG_IRQ_ALL_CPUS
+#define distribute_irqs (1)
+#else
+#define distribute_irqs (0)
+#endif
#endif
/*