aboutsummaryrefslogtreecommitdiff
path: root/common/cli_hush.c
diff options
context:
space:
mode:
authorYixun Lan <yixun.lan@gmail.com>2016-03-01 12:48:09 +0800
committerYing-Chun Liu (PaulLiu) <paulliu@debian.org>2016-03-02 13:30:44 +0800
commit2fd651604a6dbc8d707470b8fe08982790aa7734 (patch)
tree3e0994de42a116a72ed7862e6932c915f186049c /common/cli_hush.c
parent9986a91bb86649daa7826d96555671f73a788f6c (diff)
aboot: improve the buffer allocation schemebubblegum96
we try several granularity to make the allocation failure less happen 1) we first will try to allocate buffer as max order of CONFIG_FILL_BUFF_MAX_SIZE, eg 8192 blocks for SZ_4M if blksz = 512byte 2) if failure occur, we will try to allocate 8192/2=4096 blocks 3) still fail to allocate, we will try size 4096/2=2048 blocks .. 4) untill the allocation success ( the min buffer = 1 block) Signed-off-by: Yixun Lan <yixun.lan@gmail.com>
Diffstat (limited to 'common/cli_hush.c')
0 files changed, 0 insertions, 0 deletions