Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175708
b: refs/heads/master
c: 59e3f83
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Oct 30, 2009
1 parent b558d10 commit 7196a4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 551b81f26ffc2135b8490babad1a9ab12d617e8d
refs/heads/master: 59e3f837023d446924791f76fbdd4bcf8e09efcc
18 changes: 1 addition & 17 deletions trunk/arch/powerpc/platforms/pseries/eeh_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ static void print_device_node_tree(struct pci_dn *pdn, int dent)
}
#endif

/**
* irq_in_use - return true if this irq is being used
*/
static int irq_in_use(unsigned int irq)
{
int rc = 0;
unsigned long flags;
struct irq_desc *desc = irq_desc + irq;

spin_lock_irqsave(&desc->lock, flags);
if (desc->action)
rc = 1;
spin_unlock_irqrestore(&desc->lock, flags);
return rc;
}

/**
* eeh_disable_irq - disable interrupt for the recovering device
*/
Expand All @@ -93,7 +77,7 @@ static void eeh_disable_irq(struct pci_dev *dev)
if (dev->msi_enabled || dev->msix_enabled)
return;

if (!irq_in_use(dev->irq))
if (!irq_has_action(dev->irq))
return;

PCI_DN(dn)->eeh_mode |= EEH_MODE_IRQ_DISABLED;
Expand Down

0 comments on commit 7196a4e

Please sign in to comment.