Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19089
b: refs/heads/master
c: f6bc266
h: refs/heads/master
i:
  19087: f28c3a6
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jan 31, 2006
1 parent b2c5bc1 commit 7bc9059
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4021cb279a532728c3208a16b9b09b0ca8016850
refs/heads/master: f6bc2666ed6696c40ef055e88ffef0b7657437a4
6 changes: 4 additions & 2 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ static void attach_msi_entry(struct msi_desc *entry, int vector)

static void irq_handler_init(int cap_id, int pos, int mask)
{
spin_lock(&irq_desc[pos].lock);
unsigned long flags;

spin_lock_irqsave(&irq_desc[pos].lock, flags);
if (cap_id == PCI_CAP_ID_MSIX)
irq_desc[pos].handler = &msix_irq_type;
else {
Expand All @@ -425,7 +427,7 @@ static void irq_handler_init(int cap_id, int pos, int mask)
else
irq_desc[pos].handler = &msi_irq_w_maskbit_type;
}
spin_unlock(&irq_desc[pos].lock);
spin_unlock_irqrestore(&irq_desc[pos].lock, flags);
}

static void enable_msi_mode(struct pci_dev *dev, int pos, int type)
Expand Down

0 comments on commit 7bc9059

Please sign in to comment.