sfc: Remove efx_channel::has_interrupt
efx_channel::has_interrupt is redundant with efx_channel::used_flags. Remove efx_test_eventq() because it is now obviously unreachable. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
46123d043d
commit
64ee3120f7
@@ -1317,7 +1317,7 @@ void falcon_enable_interrupts(struct efx_nic *efx)
|
||||
|
||||
/* Force processing of all the channels to get the EVQ RPTRs up to
|
||||
date */
|
||||
efx_for_each_channel_with_interrupt(channel, efx)
|
||||
efx_for_each_channel(channel, efx)
|
||||
efx_schedule_channel(channel);
|
||||
}
|
||||
|
||||
@@ -1567,7 +1567,7 @@ int falcon_init_interrupt(struct efx_nic *efx)
|
||||
}
|
||||
|
||||
/* Hook MSI or MSI-X interrupt */
|
||||
efx_for_each_channel_with_interrupt(channel, efx) {
|
||||
efx_for_each_channel(channel, efx) {
|
||||
rc = request_irq(channel->irq, falcon_msi_interrupt,
|
||||
IRQF_PROBE_SHARED, /* Not shared */
|
||||
efx->name, channel);
|
||||
@@ -1580,7 +1580,7 @@ int falcon_init_interrupt(struct efx_nic *efx)
|
||||
return 0;
|
||||
|
||||
fail2:
|
||||
efx_for_each_channel_with_interrupt(channel, efx)
|
||||
efx_for_each_channel(channel, efx)
|
||||
free_irq(channel->irq, channel);
|
||||
fail1:
|
||||
return rc;
|
||||
@@ -1592,7 +1592,7 @@ void falcon_fini_interrupt(struct efx_nic *efx)
|
||||
efx_oword_t reg;
|
||||
|
||||
/* Disable MSI/MSI-X interrupts */
|
||||
efx_for_each_channel_with_interrupt(channel, efx) {
|
||||
efx_for_each_channel(channel, efx) {
|
||||
if (channel->irq)
|
||||
free_irq(channel->irq, channel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user