diff options
author | Juergen Gross <jgross@suse.com> | 2023-09-26 14:29:54 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2023-11-13 15:45:20 +0100 |
commit | f96c6c588ca81255566a5168e51c9cbbe7b86def (patch) | |
tree | 6101ab06d7cfbb30d7b0540c16d13a2be9454f0e /drivers/xen | |
parent | 47d970204054f859f35a2237baa75c2d84fcf436 (diff) | |
download | lwn-f96c6c588ca81255566a5168e51c9cbbe7b86def.tar.gz lwn-f96c6c588ca81255566a5168e51c9cbbe7b86def.zip |
xen/events: remove unused functions
There are no users of xen_irq_from_pirq() and xen_set_irq_pending().
Remove those functions.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events/events_base.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index cd33a418344a..c5d86128eb73 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1169,29 +1169,6 @@ out: return rc; } -int xen_irq_from_pirq(unsigned pirq) -{ - int irq; - - struct irq_info *info; - - mutex_lock(&irq_mapping_update_lock); - - list_for_each_entry(info, &xen_irq_list_head, list) { - if (info->type != IRQT_PIRQ) - continue; - irq = info->irq; - if (info->u.pirq.pirq == pirq) - goto out; - } - irq = -1; -out: - mutex_unlock(&irq_mapping_update_lock); - - return irq; -} - - int xen_pirq_from_irq(unsigned irq) { return pirq_from_irq(irq); @@ -2031,13 +2008,6 @@ void xen_clear_irq_pending(int irq) event_handler_exit(info); } EXPORT_SYMBOL(xen_clear_irq_pending); -void xen_set_irq_pending(int irq) -{ - evtchn_port_t evtchn = evtchn_from_irq(irq); - - if (VALID_EVTCHN(evtchn)) - set_evtchn(evtchn); -} bool xen_test_irq_pending(int irq) { |