提交 31119129 编写于 作者: W WANG Cong 提交者: David S. Miller

e1000: use disable_hardirq() for e1000_netpoll()

In commit 02cea395 ("genirq: Provide disable_hardirq()")
Peter introduced disable_hardirq() for netpoll, but it is forgotten
to use it for e1000.

This patch changes disable_irq() to disable_hardirq() for e1000.
Reported-by: NDave Jones <davej@codemonkey.org.uk>
Suggested-by: NSabrina Dubroca <sd@queasysnail.net>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0266ac45
...@@ -5255,8 +5255,8 @@ static void e1000_netpoll(struct net_device *netdev) ...@@ -5255,8 +5255,8 @@ static void e1000_netpoll(struct net_device *netdev)
{ {
struct e1000_adapter *adapter = netdev_priv(netdev); struct e1000_adapter *adapter = netdev_priv(netdev);
disable_irq(adapter->pdev->irq); if (disable_hardirq(adapter->pdev->irq))
e1000_intr(adapter->pdev->irq, netdev); e1000_intr(adapter->pdev->irq, netdev);
enable_irq(adapter->pdev->irq); enable_irq(adapter->pdev->irq);
} }
#endif #endif
......
...@@ -6755,13 +6755,13 @@ static void e1000_netpoll(struct net_device *netdev) ...@@ -6755,13 +6755,13 @@ static void e1000_netpoll(struct net_device *netdev)
e1000_intr_msix(adapter->pdev->irq, netdev); e1000_intr_msix(adapter->pdev->irq, netdev);
break; break;
case E1000E_INT_MODE_MSI: case E1000E_INT_MODE_MSI:
disable_irq(adapter->pdev->irq); if (disable_hardirq(adapter->pdev->irq))
e1000_intr_msi(adapter->pdev->irq, netdev); e1000_intr_msi(adapter->pdev->irq, netdev);
enable_irq(adapter->pdev->irq); enable_irq(adapter->pdev->irq);
break; break;
default: /* E1000E_INT_MODE_LEGACY */ default: /* E1000E_INT_MODE_LEGACY */
disable_irq(adapter->pdev->irq); if (disable_hardirq(adapter->pdev->irq))
e1000_intr(adapter->pdev->irq, netdev); e1000_intr(adapter->pdev->irq, netdev);
enable_irq(adapter->pdev->irq); enable_irq(adapter->pdev->irq);
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册