Skip to content

Commit 4640ddf

Browse files
David Vrabelkonradwilk
authored andcommitted
xen/events: remove the unused resend_irq_on_evtchn()
resend_irq_on_evtchn() was only used by ia64 (which no longer has Xen support). Signed-off-by: David Vrabel <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]>
1 parent d4c7abd commit 4640ddf

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

drivers/xen/events/events_base.c

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,26 +1344,6 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
13441344
return rebind_irq_to_cpu(data->irq, tcpu);
13451345
}
13461346

1347-
static int retrigger_evtchn(int evtchn)
1348-
{
1349-
int masked;
1350-
1351-
if (!VALID_EVTCHN(evtchn))
1352-
return 0;
1353-
1354-
masked = test_and_set_mask(evtchn);
1355-
set_evtchn(evtchn);
1356-
if (!masked)
1357-
unmask_evtchn(evtchn);
1358-
1359-
return 1;
1360-
}
1361-
1362-
int resend_irq_on_evtchn(unsigned int irq)
1363-
{
1364-
return retrigger_evtchn(evtchn_from_irq(irq));
1365-
}
1366-
13671347
static void enable_dynirq(struct irq_data *data)
13681348
{
13691349
int evtchn = evtchn_from_irq(data->irq);
@@ -1398,7 +1378,18 @@ static void mask_ack_dynirq(struct irq_data *data)
13981378

13991379
static int retrigger_dynirq(struct irq_data *data)
14001380
{
1401-
return retrigger_evtchn(evtchn_from_irq(data->irq));
1381+
unsigned int evtchn = evtchn_from_irq(data->irq);
1382+
int masked;
1383+
1384+
if (!VALID_EVTCHN(evtchn))
1385+
return 0;
1386+
1387+
masked = test_and_set_mask(evtchn);
1388+
set_evtchn(evtchn);
1389+
if (!masked)
1390+
unmask_evtchn(evtchn);
1391+
1392+
return 1;
14021393
}
14031394

14041395
static void restore_pirqs(void)

include/xen/events.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ int evtchn_get(unsigned int evtchn);
5252
void evtchn_put(unsigned int evtchn);
5353

5454
void xen_send_IPI_one(unsigned int cpu, enum ipi_vector vector);
55-
int resend_irq_on_evtchn(unsigned int irq);
5655
void rebind_evtchn_irq(int evtchn, int irq);
5756

5857
static inline void notify_remote_via_evtchn(int port)

0 commit comments

Comments
 (0)