Skip to content

Commit

Permalink
xen/events: remove the unused resend_irq_on_evtchn()
Browse files Browse the repository at this point in the history
resend_irq_on_evtchn() was only used by ia64 (which no longer has Xen
support).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
  • Loading branch information
David Vrabel authored and Konrad Rzeszutek Wilk committed Feb 28, 2014
1 parent d4c7abd commit 4640ddf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
33 changes: 12 additions & 21 deletions drivers/xen/events/events_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,26 +1344,6 @@ static int set_affinity_irq(struct irq_data *data, const struct cpumask *dest,
return rebind_irq_to_cpu(data->irq, tcpu);
}

static int retrigger_evtchn(int evtchn)
{
int masked;

if (!VALID_EVTCHN(evtchn))
return 0;

masked = test_and_set_mask(evtchn);
set_evtchn(evtchn);
if (!masked)
unmask_evtchn(evtchn);

return 1;
}

int resend_irq_on_evtchn(unsigned int irq)
{
return retrigger_evtchn(evtchn_from_irq(irq));
}

static void enable_dynirq(struct irq_data *data)
{
int evtchn = evtchn_from_irq(data->irq);
Expand Down Expand Up @@ -1398,7 +1378,18 @@ static void mask_ack_dynirq(struct irq_data *data)

static int retrigger_dynirq(struct irq_data *data)
{
return retrigger_evtchn(evtchn_from_irq(data->irq));
unsigned int evtchn = evtchn_from_irq(data->irq);
int masked;

if (!VALID_EVTCHN(evtchn))
return 0;

masked = test_and_set_mask(evtchn);
set_evtchn(evtchn);
if (!masked)
unmask_evtchn(evtchn);

return 1;
}

static void restore_pirqs(void)
Expand Down
1 change: 0 additions & 1 deletion include/xen/events.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ int evtchn_get(unsigned int evtchn);
void evtchn_put(unsigned int evtchn);

void xen_send_IPI_one(unsigned int cpu, enum ipi_vector vector);
int resend_irq_on_evtchn(unsigned int irq);
void rebind_evtchn_irq(int evtchn, int irq);

static inline void notify_remote_via_evtchn(int port)
Expand Down

0 comments on commit 4640ddf

Please sign in to comment.