git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'linus' into irq/numa
[sfrench/cifs-2.6.git]
/
arch
/
mips
/
sibyte
/
sb1250
/
irq.c
diff --git
a/arch/mips/sibyte/sb1250/irq.c
b/arch/mips/sibyte/sb1250/irq.c
index 38cb998ade22053b8963377b70d6f7dad7fb6b94..409dec798863194f364eb378666c9e7471fd0227 100644
(file)
--- a/
arch/mips/sibyte/sb1250/irq.c
+++ b/
arch/mips/sibyte/sb1250/irq.c
@@
-50,7
+50,7
@@
static void enable_sb1250_irq(unsigned int irq);
static void disable_sb1250_irq(unsigned int irq);
static void ack_sb1250_irq(unsigned int irq);
#ifdef CONFIG_SMP
static void disable_sb1250_irq(unsigned int irq);
static void ack_sb1250_irq(unsigned int irq);
#ifdef CONFIG_SMP
-static
void
sb1250_set_affinity(unsigned int irq, const struct cpumask *mask);
+static
int
sb1250_set_affinity(unsigned int irq, const struct cpumask *mask);
#endif
#ifdef CONFIG_SIBYTE_HAS_LDT
#endif
#ifdef CONFIG_SIBYTE_HAS_LDT
@@
-103,7
+103,7
@@
void sb1250_unmask_irq(int cpu, int irq)
}
#ifdef CONFIG_SMP
}
#ifdef CONFIG_SMP
-static
void
sb1250_set_affinity(unsigned int irq, const struct cpumask *mask)
+static
int
sb1250_set_affinity(unsigned int irq, const struct cpumask *mask)
{
int i = 0, old_cpu, cpu, int_on;
u64 cur_ints;
{
int i = 0, old_cpu, cpu, int_on;
u64 cur_ints;
@@
-113,7
+113,7
@@
static void sb1250_set_affinity(unsigned int irq, const struct cpumask *mask)
if (cpumask_weight(mask) > 1) {
printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq);
if (cpumask_weight(mask) > 1) {
printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq);
- return;
+ return
-1
;
}
/* Convert logical CPU to physical CPU */
}
/* Convert logical CPU to physical CPU */
@@
-143,6
+143,8
@@
static void sb1250_set_affinity(unsigned int irq, const struct cpumask *mask)
R_IMR_INTERRUPT_MASK));
}
spin_unlock_irqrestore(&sb1250_imr_lock, flags);
R_IMR_INTERRUPT_MASK));
}
spin_unlock_irqrestore(&sb1250_imr_lock, flags);
+
+ return 0;
}
#endif
}
#endif