From: Konrad Rzeszutek Wilk Date: Fri, 17 Aug 2012 13:45:54 +0000 (-0400) Subject: Revert "xen/events: Add WARN_ON when quick lookup found invalid type." X-Git-Tag: next-20120820~22^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c53557056e28aa2c9a66af94d5c701b60042f9e8;p=karo-tx-linux.git Revert "xen/events: Add WARN_ON when quick lookup found invalid type." This reverts commit f6553d0d1de2d27295557954d0d1e9e0da86abee. --- diff --git a/drivers/xen/events.c b/drivers/xen/events.c index f14e7a180720..6908e4ce2a0d 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -827,9 +827,6 @@ int bind_evtchn_to_irq(unsigned int evtchn) handle_edge_irq, "event"); xen_irq_info_evtchn_init(irq, evtchn); - } else { - struct irq_info *info = info_for_irq(irq); - WARN_ON(info == NULL || info->type != IRQT_EVTCHN); } out: @@ -865,10 +862,8 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu) xen_irq_info_ipi_init(cpu, irq, evtchn, ipi); bind_evtchn_to_cpu(evtchn, cpu); - } else { - struct irq_info *info = info_for_irq(irq); - WARN_ON(info == NULL || info->type != IRQT_IPI); } + out: mutex_unlock(&irq_mapping_update_lock); return irq; @@ -944,10 +939,8 @@ int bind_virq_to_irq(unsigned int virq, unsigned int cpu) xen_irq_info_virq_init(cpu, irq, evtchn, virq); bind_evtchn_to_cpu(evtchn, cpu); - } else { - struct irq_info *info = info_for_irq(irq); - WARN_ON(info == NULL || info->type != IRQT_VIRQ); } + out: mutex_unlock(&irq_mapping_update_lock);