diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/parisc/iosapic.c | 7 | ||||
-rw-r--r-- | drivers/xen/events.c | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index 7beffcab2745..9dedbbd218c3 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c | |||
@@ -704,16 +704,17 @@ static unsigned int iosapic_startup_irq(unsigned int irq) | |||
704 | } | 704 | } |
705 | 705 | ||
706 | #ifdef CONFIG_SMP | 706 | #ifdef CONFIG_SMP |
707 | static void iosapic_set_affinity_irq(unsigned int irq, cpumask_t dest) | 707 | static void iosapic_set_affinity_irq(unsigned int irq, |
708 | const struct cpumask *dest) | ||
708 | { | 709 | { |
709 | struct vector_info *vi = iosapic_get_vector(irq); | 710 | struct vector_info *vi = iosapic_get_vector(irq); |
710 | u32 d0, d1, dummy_d0; | 711 | u32 d0, d1, dummy_d0; |
711 | unsigned long flags; | 712 | unsigned long flags; |
712 | 713 | ||
713 | if (cpu_check_affinity(irq, &dest)) | 714 | if (cpu_check_affinity(irq, dest)) |
714 | return; | 715 | return; |
715 | 716 | ||
716 | vi->txn_addr = txn_affinity_addr(irq, first_cpu(dest)); | 717 | vi->txn_addr = txn_affinity_addr(irq, cpumask_first(dest)); |
717 | 718 | ||
718 | spin_lock_irqsave(&iosapic_lock, flags); | 719 | spin_lock_irqsave(&iosapic_lock, flags); |
719 | /* d1 contains the destination CPU, so only want to set that | 720 | /* d1 contains the destination CPU, so only want to set that |
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 1e3b934a4cf7..eba5ec5b020e 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -579,7 +579,7 @@ void rebind_evtchn_irq(int evtchn, int irq) | |||
579 | spin_unlock(&irq_mapping_update_lock); | 579 | spin_unlock(&irq_mapping_update_lock); |
580 | 580 | ||
581 | /* new event channels are always bound to cpu 0 */ | 581 | /* new event channels are always bound to cpu 0 */ |
582 | irq_set_affinity(irq, cpumask_of_cpu(0)); | 582 | irq_set_affinity(irq, cpumask_of(0)); |
583 | 583 | ||
584 | /* Unmask the event channel. */ | 584 | /* Unmask the event channel. */ |
585 | enable_irq(irq); | 585 | enable_irq(irq); |
@@ -608,9 +608,9 @@ static void rebind_irq_to_cpu(unsigned irq, unsigned tcpu) | |||
608 | } | 608 | } |
609 | 609 | ||
610 | 610 | ||
611 | static void set_affinity_irq(unsigned irq, cpumask_t dest) | 611 | static void set_affinity_irq(unsigned irq, const struct cpumask *dest) |
612 | { | 612 | { |
613 | unsigned tcpu = first_cpu(dest); | 613 | unsigned tcpu = cpumask_first(dest); |
614 | rebind_irq_to_cpu(irq, tcpu); | 614 | rebind_irq_to_cpu(irq, tcpu); |
615 | } | 615 | } |
616 | 616 | ||