mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
This commit is contained in:
parent
9dfe914da8
commit
8b6649c575
3 changed files with 13 additions and 8 deletions
|
|
@ -708,11 +708,14 @@ static void iosapic_set_affinity_irq(unsigned int irq,
|
|||
struct vector_info *vi = iosapic_get_vector(irq);
|
||||
u32 d0, d1, dummy_d0;
|
||||
unsigned long flags;
|
||||
int dest_cpu;
|
||||
|
||||
if (cpu_check_affinity(irq, dest))
|
||||
dest_cpu = cpu_check_affinity(irq, dest);
|
||||
if (dest_cpu < 0)
|
||||
return;
|
||||
|
||||
vi->txn_addr = txn_affinity_addr(irq, cpumask_first(dest));
|
||||
irq_desc[irq].affinity = cpumask_of_cpu(dest_cpu);
|
||||
vi->txn_addr = txn_affinity_addr(irq, dest_cpu);
|
||||
|
||||
spin_lock_irqsave(&iosapic_lock, flags);
|
||||
/* d1 contains the destination CPU, so only want to set that
|
||||
|
|
|
|||
Loading…
Reference in a new issue