Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300766
b: refs/heads/master
c: aa45ba9
h: refs/heads/master
v: v3
  • Loading branch information
Tony Zelenoff authored and David S. Miller committed Apr 15, 2012
1 parent 46a2438 commit eeec006
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02d5d11bfa6d94676856c048a8471a4014368492
refs/heads/master: aa45ba90b59b7a18b067b898a8cc8ccf8cbbb261
6 changes: 6 additions & 0 deletions trunk/drivers/net/ethernet/atheros/atlx/atl1.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,12 @@ struct atl1_adapter {
u16 ict; /* interrupt clear timer (2us resolution */
struct mii_if_info mii; /* MII interface info */

/*
* Use this value to check is napi handler allowed to
* enable ints or not
*/
bool int_enabled;

u32 bd_number; /* board number */
bool pci_using_64;
struct atl1_hw hw;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/ethernet/atheros/atlx/atlx.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static inline void atlx_imr_set(struct atlx_adapter *adapter,
static void atlx_irq_enable(struct atlx_adapter *adapter)
{
atlx_imr_set(adapter, IMR_NORMAL_MASK);
adapter->int_enabled = true;
}

/*
Expand All @@ -177,6 +178,7 @@ static void atlx_irq_enable(struct atlx_adapter *adapter)
*/
static void atlx_irq_disable(struct atlx_adapter *adapter)
{
adapter->int_enabled = false;
atlx_imr_set(adapter, 0);
synchronize_irq(adapter->pdev->irq);
}
Expand Down

0 comments on commit eeec006

Please sign in to comment.