projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1091ce6
)
sparc64: Fix UP build.
author
David S. Miller
<davem@davemloft.net>
Tue, 26 Jan 2010 12:16:49 +0000
(
04:16
-0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 26 Jan 2010 12:16:49 +0000
(
04:16
-0800)
Can't reference irq_desc[].affinity when !SMP.
Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/irq_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc/kernel/irq_64.c
b/arch/sparc/kernel/irq_64.c
index f2179cce1e4d7087dab8ee7f2e28ba852c2b8f7d..e1cbdb94d97bc10030e7ac5add8f1b22a54cc47e 100644
(file)
--- 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)