diff options
author | Michael Chan <mchan@broadcom.com> | 2007-10-02 19:27:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:54:07 -0400 |
commit | ea1f8d5c3a593a791463c2efc07e5dfebd056500 (patch) | |
tree | e25bb6cffff8637b19c73f6ca68eeb901a2473a3 /drivers/net/bnx2.h | |
parent | dad8c737962669240470923f951570ed716da1a1 (diff) |
[BNX2]: Optimize firmware loading.
This is a follow up to the patches from Denys Vlasenkos
<vda.linux@googlemail.com> to further optimize firmware loading.
1. In bnx2_init_cpus(), we allocate memory for decompression once
and use it repeatedly instead of doing this for every firmware image.
2. We eliminate the BSS and SBSS firmware sections in bnx2_fw*.h since
these are always zeros.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index a717459cc8d4..56c190fc6de6 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -6738,7 +6738,7 @@ struct fw_info { | |||
6738 | const u32 text_addr; | 6738 | const u32 text_addr; |
6739 | const u32 text_len; | 6739 | const u32 text_len; |
6740 | const u32 text_index; | 6740 | const u32 text_index; |
6741 | /* u32 *text;*/ | 6741 | u32 *text; |
6742 | u8 *gz_text; | 6742 | u8 *gz_text; |
6743 | const u32 gz_text_len; | 6743 | const u32 gz_text_len; |
6744 | 6744 | ||
@@ -6752,13 +6752,11 @@ struct fw_info { | |||
6752 | const u32 sbss_addr; | 6752 | const u32 sbss_addr; |
6753 | const u32 sbss_len; | 6753 | const u32 sbss_len; |
6754 | const u32 sbss_index; | 6754 | const u32 sbss_index; |
6755 | const u32 *sbss; | ||
6756 | 6755 | ||
6757 | /* BSS section. */ | 6756 | /* BSS section. */ |
6758 | const u32 bss_addr; | 6757 | const u32 bss_addr; |
6759 | const u32 bss_len; | 6758 | const u32 bss_len; |
6760 | const u32 bss_index; | 6759 | const u32 bss_index; |
6761 | const u32 *bss; | ||
6762 | 6760 | ||
6763 | /* Read-only section. */ | 6761 | /* Read-only section. */ |
6764 | const u32 rodata_addr; | 6762 | const u32 rodata_addr; |