mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
xen: Remove unnecessary arch specific xen irq functions.
Right now xen's use of the x86 and ia64 handle_irq is just bizarre and very fragile as it is very non-obvious the function exists and is is used by code out in drivers/.... Luckily using handle_irq is completely unnecessary, and we can just use the generic irq apis instead. This still leaves drivers/xen/events.c as a problematic user of the generic irq apis it has "static struct irq_info irq_info[NR_IRQS]" but that can be fixed some other time. Signed-off-by: Eric W. Biederman <[email protected]> LKML-Reference: <[email protected]> Acked-by: Jeremy Fitzhardinge <[email protected]> Cc: Ian Campbell <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
This commit is contained in:
parent
2b633e3fac
commit
ca4dbc6684
2 changed files with 6 additions and 6 deletions
|
|
@ -649,9 +649,13 @@ void xen_evtchn_do_upcall(struct pt_regs *regs)
|
|||
int bit_idx = __ffs(pending_bits);
|
||||
int port = (word_idx * BITS_PER_LONG) + bit_idx;
|
||||
int irq = evtchn_to_irq[port];
|
||||
struct irq_desc *desc;
|
||||
|
||||
if (irq != -1)
|
||||
handle_irq(irq, regs);
|
||||
if (irq != -1) {
|
||||
desc = irq_to_desc(irq);
|
||||
if (desc)
|
||||
generic_handle_irq_desc(irq, desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue