aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index e26733a9df21..eb0dfdeaa949 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -585,7 +585,7 @@ void rebind_evtchn_irq(int evtchn, int irq)
585 spin_unlock(&irq_mapping_update_lock); 585 spin_unlock(&irq_mapping_update_lock);
586 586
587 /* new event channels are always bound to cpu 0 */ 587 /* new event channels are always bound to cpu 0 */
588 irq_set_affinity(irq, cpumask_of_cpu(0)); 588 irq_set_affinity(irq, cpumask_of(0));
589 589
590 /* Unmask the event channel. */ 590 /* Unmask the event channel. */
591 enable_irq(irq); 591 enable_irq(irq);
@@ -614,9 +614,9 @@ static void rebind_irq_to_cpu(unsigned irq, unsigned tcpu)
614} 614}
615 615
616 616
617static void set_affinity_irq(unsigned irq, cpumask_t dest) 617static void set_affinity_irq(unsigned irq, const struct cpumask *dest)
618{ 618{
619 unsigned tcpu = first_cpu(dest); 619 unsigned tcpu = cpumask_first(dest);
620 rebind_irq_to_cpu(irq, tcpu); 620 rebind_irq_to_cpu(irq, tcpu);
621} 621}
622 622