diff options
| author | Yue Ma <yuem@codeaurora.org> | 2016-02-02 18:14:19 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:19:31 -0700 |
| commit | 9a17863050830256cb4989dc3aa9c90758f76724 (patch) | |
| tree | 52576e6ae8d17ea611f98adf14cdfc0d21c53bba /drivers/net | |
| parent | bf7f76cbc58bd0b365cc778f1f9634ea88d72a83 (diff) | |
cnss: Update prealloc memory table
The memory size of a slot in the prealloc table should be order of 2,
otherwise some memory will be wasted since kernel only allocates
contiguous physical memory in pages by order of 2.
Change-Id: I762ad490d300f8b622a3ed1f9ccbe2af2d926c49
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/wireless/cnss_prealloc/cnss_prealloc.c | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c b/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c index d5e419faa1f1..590c1cda96bc 100644 --- a/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c +++ b/drivers/net/wireless/cnss_prealloc/cnss_prealloc.c @@ -42,50 +42,50 @@ static struct wcnss_prealloc wcnss_allocs[] = { {0, 8 * 1024, NULL}, {0, 8 * 1024, NULL}, {0, 8 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 12 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 16 * 1024, NULL}, - {0, 24 * 1024, NULL}, - {0, 24 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 16 * 1024, NULL}, + {0, 32 * 1024, NULL}, + {0, 32 * 1024, NULL}, {0, 32 * 1024, NULL}, {0, 32 * 1024, NULL}, {0, 32 * 1024, NULL}, @@ -98,7 +98,7 @@ static struct wcnss_prealloc wcnss_allocs[] = { {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, {0, 64 * 1024, NULL}, - {0, 76 * 1024, NULL}, + {0, 128 * 1024, NULL}, }; int wcnss_prealloc_init(void) |
