Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111675
b: refs/heads/master
c: ac392ab
h: refs/heads/master
i:
  111673: fb60836
  111671: 4c4f2ad
v: v3
  • Loading branch information
Benjamin Li authored and David S. Miller committed Sep 18, 2008
1 parent 592df96 commit 88453b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: fbbf68b7f88953a9c56b7a7b4019fa5212987b34
refs/heads/master: ac392abce936d78f7b731d90bfbc1001ddb446ea
13 changes: 6 additions & 7 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5598,7 +5598,7 @@ bnx2_5706_serdes_timer(struct bnx2 *bp)
} else if ((bp->link_up == 0) && (bp->autoneg & AUTONEG_SPEED)) {
u32 bmcr;

bp->current_interval = bp->timer_interval;
bp->current_interval = BNX2_TIMER_INTERVAL;

bnx2_read_phy(bp, bp->mii_bmcr, &bmcr);

Expand Down Expand Up @@ -5627,7 +5627,7 @@ bnx2_5706_serdes_timer(struct bnx2 *bp)
bp->phy_flags &= ~BNX2_PHY_FLAG_PARALLEL_DETECT;
}
} else
bp->current_interval = bp->timer_interval;
bp->current_interval = BNX2_TIMER_INTERVAL;

if (check_link) {
u32 val;
Expand Down Expand Up @@ -5672,11 +5672,11 @@ bnx2_5708_serdes_timer(struct bnx2 *bp)
} else {
bnx2_disable_forced_2g5(bp);
bp->serdes_an_pending = 2;
bp->current_interval = bp->timer_interval;
bp->current_interval = BNX2_TIMER_INTERVAL;
}

} else
bp->current_interval = bp->timer_interval;
bp->current_interval = BNX2_TIMER_INTERVAL;

spin_unlock(&bp->phy_lock);
}
Expand Down Expand Up @@ -7514,8 +7514,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)

bp->stats_ticks = USEC_PER_SEC & BNX2_HC_STATS_TICKS_HC_STAT_TICKS;

bp->timer_interval = HZ;
bp->current_interval = HZ;
bp->current_interval = BNX2_TIMER_INTERVAL;

bp->phy_addr = 1;

Expand Down Expand Up @@ -7605,7 +7604,7 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
bp->req_flow_ctrl = FLOW_CTRL_RX | FLOW_CTRL_TX;

init_timer(&bp->timer);
bp->timer.expires = RUN_AT(bp->timer_interval);
bp->timer.expires = RUN_AT(BNX2_TIMER_INTERVAL);
bp->timer.data = (unsigned long) bp;
bp->timer.function = bnx2_timer;

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/bnx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -6654,6 +6654,8 @@ struct bnx2_napi {
struct bnx2_tx_ring_info tx_ring;
};

#define BNX2_TIMER_INTERVAL HZ

struct bnx2 {
/* Fields used in the tx and intr/napi performance paths are grouped */
/* together in the beginning of the structure. */
Expand Down Expand Up @@ -6701,7 +6703,6 @@ struct bnx2 {

/* End of fields used in the performance code paths. */

int timer_interval;
int current_interval;
struct timer_list timer;
struct work_struct reset_task;
Expand Down

0 comments on commit 88453b4

Please sign in to comment.