diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-08-12 04:23:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 02:02:53 -0400 |
commit | 5ff7b6d4c129a430e355b2f88162a36d9e058f88 (patch) | |
tree | 6d7597ea63c1e0d1137b3102fd4d2be5f995cdfb /drivers/net/bnx2x.h | |
parent | 0d28e49a2616b927bca5fde0f16dfdfd2a501107 (diff) |
bnx2x: Remove the init_dmae field from bp
Moved the dmae_command from the heap to the stack. This will save 56
bytes per bnx2x structure. As a side benefit, we can also reduce the
time the dmae_mutex is held. This is because do we not need to hold
this mutex when setting up the dmae command. The memory where is dmae
command is stored is not a shared resource and doesn not need to be
protected.
Signed-off-by: Benjamin Li <benli@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.h')
-rw-r--r-- | drivers/net/bnx2x.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index 633acca4a988..a231780061c0 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h | |||
@@ -973,7 +973,6 @@ struct bnx2x { | |||
973 | int dmae_ready; | 973 | int dmae_ready; |
974 | /* used to synchronize dmae accesses */ | 974 | /* used to synchronize dmae accesses */ |
975 | struct mutex dmae_mutex; | 975 | struct mutex dmae_mutex; |
976 | struct dmae_command init_dmae; | ||
977 | 976 | ||
978 | /* used to synchronize stats collecting */ | 977 | /* used to synchronize stats collecting */ |
979 | int stats_state; | 978 | int stats_state; |