aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorKyle McMartin <kyle@shortfin.cabal.ca>2009-02-16 03:20:54 -0500
committerKyle McMartin <kyle@treachery.i.cabal.ca>2009-03-13 01:20:27 -0400
commit8b6649c575e0d8312f62fe643ae43558892da2e1 (patch)
treeefbb8966d9b607ac9d46113255e792f645d05d49 /drivers/parisc
parent9dfe914da83ebc88f85d94b4d30d0e45882766d1 (diff)
parisc: convert cpu_check_affinity to new cpumask api
cpumask arg to the affinity function is now const, sort that out through the irq_desc implementations. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/iosapic.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c
index 1cdfdea5d7ef..501aaf1f253f 100644
--- a/drivers/parisc/iosapic.c
+++ b/drivers/parisc/iosapic.c
@@ -708,11 +708,14 @@ static void iosapic_set_affinity_irq(unsigned int irq,
708 struct vector_info *vi = iosapic_get_vector(irq); 708 struct vector_info *vi = iosapic_get_vector(irq);
709 u32 d0, d1, dummy_d0; 709 u32 d0, d1, dummy_d0;
710 unsigned long flags; 710 unsigned long flags;
711 int dest_cpu;
711 712
712 if (cpu_check_affinity(irq, dest)) 713 dest_cpu = cpu_check_affinity(irq, dest);
714 if (dest_cpu < 0)
713 return; 715 return;
714 716
715 vi->txn_addr = txn_affinity_addr(irq, cpumask_first(dest)); 717 irq_desc[irq].affinity = cpumask_of_cpu(dest_cpu);
718 vi->txn_addr = txn_affinity_addr(irq, dest_cpu);
716 719
717 spin_lock_irqsave(&iosapic_lock, flags); 720 spin_lock_irqsave(&iosapic_lock, flags);
718 /* d1 contains the destination CPU, so only want to set that 721 /* d1 contains the destination CPU, so only want to set that