diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:27:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:37 -0400 |
commit | 8fe23fbd94af5a4c117fd0eb2f1c3f492f79efe8 (patch) | |
tree | 211c6742d3719304eda84ecea6e9441979146298 /drivers/net/bnx2x/bnx2x_stats.c | |
parent | fb3bff178e722fe88b5ab02319c9636da0980e25 (diff) |
bnx2x: change type of spq_left to atomic
The field is now accessed from different contexts.
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_stats.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_stats.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index c271fc52613d..32b6b1033a3b 100644 --- a/drivers/net/bnx2x/bnx2x_stats.c +++ b/drivers/net/bnx2x/bnx2x_stats.c | |||
@@ -166,11 +166,8 @@ static void bnx2x_storm_stats_post(struct bnx2x *bp) | |||
166 | rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_COMMON_STAT_QUERY, 0, | 166 | rc = bnx2x_sp_post(bp, RAMROD_CMD_ID_COMMON_STAT_QUERY, 0, |
167 | ((u32 *)&ramrod_data)[1], | 167 | ((u32 *)&ramrod_data)[1], |
168 | ((u32 *)&ramrod_data)[0], 1); | 168 | ((u32 *)&ramrod_data)[0], 1); |
169 | if (rc == 0) { | 169 | if (rc == 0) |
170 | /* stats ramrod has it's own slot on the spq */ | ||
171 | bp->spq_left++; | ||
172 | bp->stats_pending = 1; | 170 | bp->stats_pending = 1; |
173 | } | ||
174 | 171 | ||
175 | spin_unlock_bh(&bp->stats_lock); | 172 | spin_unlock_bh(&bp->stats_lock); |
176 | } | 173 | } |