diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-02-23 21:40:18 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-03-04 17:37:52 +0100 |
commit | 589d03e93f6cd595f68891e48f0804f2c8f38aae (patch) | |
tree | f7c5a3c8ee87e4c7bc02dcf02f7986d15616dd9c /drivers/xen/events/events_fifo.c | |
parent | 49f3fbc7b8576fd578f3504c65aae9b8a212d0f6 (diff) | |
download | op-kernel-dev-589d03e93f6cd595f68891e48f0804f2c8f38aae.zip op-kernel-dev-589d03e93f6cd595f68891e48f0804f2c8f38aae.tar.gz |
xen: Use the proper irq functions
generic_handler_irq() already tests for !desc so use this instead of
generic_handle_irq_desc().
Use irq_get_irq_data() instead of desc->irq_data.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Xen <xen-devel@lists.xenproject.org>
Link: http://lkml.kernel.org/r/20140223212738.222412125@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/xen/events/events_fifo.c')
-rw-r--r-- | drivers/xen/events/events_fifo.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c index 1de2a19..96109a9 100644 --- a/drivers/xen/events/events_fifo.c +++ b/drivers/xen/events/events_fifo.c @@ -235,14 +235,10 @@ static uint32_t clear_linked(volatile event_word_t *word) static void handle_irq_for_port(unsigned port) { int irq; - struct irq_desc *desc; irq = get_evtchn_to_irq(port); - if (irq != -1) { - desc = irq_to_desc(irq); - if (desc) - generic_handle_irq_desc(irq, desc); - } + if (irq != -1) + generic_handle_irq(irq); } static void consume_one_event(unsigned cpu, |