xen: dont fiddle with event channel masking in suspend/resume

Instead of fiddling with masking the event channels during suspend
and resume handling let do the irq subsystem do its job. It will do
the mask and unmask operations as needed.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>

Changed files
+3 -10
drivers
xen
events
+3 -10
drivers/xen/events/events_base.c
··· 343 info->cpu = cpu; 344 } 345 346 - static void xen_evtchn_mask_all(void) 347 - { 348 - unsigned int evtchn; 349 - 350 - for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++) 351 - mask_evtchn(evtchn); 352 - } 353 - 354 /** 355 * notify_remote_via_irq - send event to remote end of event channel via irq 356 * @irq: irq of event channel to send event to ··· 1565 struct irq_info *info; 1566 1567 /* New event-channel space is not 'live' yet. */ 1568 - xen_evtchn_mask_all(); 1569 xen_evtchn_resume(); 1570 1571 /* No IRQ <-> event-channel mappings. */ ··· 1672 void __init xen_init_IRQ(void) 1673 { 1674 int ret = -EINVAL; 1675 1676 if (fifo_events) 1677 ret = xen_evtchn_fifo_init(); ··· 1684 BUG_ON(!evtchn_to_irq); 1685 1686 /* No event channels are 'live' right now. */ 1687 - xen_evtchn_mask_all(); 1688 1689 pirq_needs_eoi = pirq_needs_eoi_flag; 1690
··· 343 info->cpu = cpu; 344 } 345 346 /** 347 * notify_remote_via_irq - send event to remote end of event channel via irq 348 * @irq: irq of event channel to send event to ··· 1573 struct irq_info *info; 1574 1575 /* New event-channel space is not 'live' yet. */ 1576 xen_evtchn_resume(); 1577 1578 /* No IRQ <-> event-channel mappings. */ ··· 1681 void __init xen_init_IRQ(void) 1682 { 1683 int ret = -EINVAL; 1684 + unsigned int evtchn; 1685 1686 if (fifo_events) 1687 ret = xen_evtchn_fifo_init(); ··· 1692 BUG_ON(!evtchn_to_irq); 1693 1694 /* No event channels are 'live' right now. */ 1695 + for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++) 1696 + mask_evtchn(evtchn); 1697 1698 pirq_needs_eoi = pirq_needs_eoi_flag; 1699