Skip to content

Commit f96c6c5

Browse files
committed
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 <[email protected]> Reviewed-by: Oleksandr Tyshchenko <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent 47d9702 commit f96c6c5

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

drivers/xen/events/events_base.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,29 +1169,6 @@ int xen_destroy_irq(int irq)
11691169
return rc;
11701170
}
11711171

1172-
int xen_irq_from_pirq(unsigned pirq)
1173-
{
1174-
int irq;
1175-
1176-
struct irq_info *info;
1177-
1178-
mutex_lock(&irq_mapping_update_lock);
1179-
1180-
list_for_each_entry(info, &xen_irq_list_head, list) {
1181-
if (info->type != IRQT_PIRQ)
1182-
continue;
1183-
irq = info->irq;
1184-
if (info->u.pirq.pirq == pirq)
1185-
goto out;
1186-
}
1187-
irq = -1;
1188-
out:
1189-
mutex_unlock(&irq_mapping_update_lock);
1190-
1191-
return irq;
1192-
}
1193-
1194-
11951172
int xen_pirq_from_irq(unsigned irq)
11961173
{
11971174
return pirq_from_irq(irq);
@@ -2031,13 +2008,6 @@ void xen_clear_irq_pending(int irq)
20312008
event_handler_exit(info);
20322009
}
20332010
EXPORT_SYMBOL(xen_clear_irq_pending);
2034-
void xen_set_irq_pending(int irq)
2035-
{
2036-
evtchn_port_t evtchn = evtchn_from_irq(irq);
2037-
2038-
if (VALID_EVTCHN(evtchn))
2039-
set_evtchn(evtchn);
2040-
}
20412011

20422012
bool xen_test_irq_pending(int irq)
20432013
{

include/xen/events.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ void xen_irq_resume(void);
8888

8989
/* Clear an irq's pending state, in preparation for polling on it */
9090
void xen_clear_irq_pending(int irq);
91-
void xen_set_irq_pending(int irq);
9291
bool xen_test_irq_pending(int irq);
9392

9493
/* Poll waiting for an irq to become pending. In the usual case, the
@@ -122,9 +121,6 @@ int xen_bind_pirq_msi_to_irq(struct pci_dev *dev, struct msi_desc *msidesc,
122121
/* De-allocates the above mentioned physical interrupt. */
123122
int xen_destroy_irq(int irq);
124123

125-
/* Return irq from pirq */
126-
int xen_irq_from_pirq(unsigned pirq);
127-
128124
/* Return the pirq allocated to the irq. */
129125
int xen_pirq_from_irq(unsigned irq);
130126

0 commit comments

Comments
 (0)