[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100126.041253.189819572.davem@davemloft.net>
Date: Tue, 26 Jan 2010 04:12:53 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: a.beregalov@...il.com
Cc: torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [GIT]: Sparc
From: Alexander Beregalov <a.beregalov@...il.com>
Date: Tue, 26 Jan 2010 12:23:06 +0300
> Hi David
>
>> 7) IRQ ->set_affinity() using wrong cpu mask, thanks to Ben H. for
>> noticing.
>> sparc64: Fix IRQ ->set_affinity() methods.
>
> This commit breaks UP build
Sorry, I'll fix this, thanks for the report.
sparc64: Fix UP build.
Can't reference irq_desc[].affinity when !SMP.
Reported-by: Alexander Beregalov <a.beregalov@...il.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
index f2179cc..e1cbdb9 100644
--- a/arch/sparc/kernel/irq_64.c
+++ b/arch/sparc/kernel/irq_64.c
@@ -268,10 +268,8 @@ static int irq_choose_cpu(unsigned int virt_irq, const struct cpumask *affinity)
return cpuid;
}
#else
-static int irq_choose_cpu(unsigned int virt_irq, const struct cpumask *affinity)
-{
- return real_hard_smp_processor_id();
-}
+#define irq_choose_cpu(virt_irq, affinity) \
+ real_hard_smp_processor_id()
#endif
static void sun4u_irq_enable(unsigned int virt_irq)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists