diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-21 10:26:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-21 13:13:59 +0200 |
commit | 16a3b9f241861aaf7ddd6f284e111aad291c508f (patch) | |
tree | cb25c5ddb652bde1bcb566208e07a40dbcb30aee /commands | |
parent | 5e131c5905265c2060836864557fe51198627dea (diff) | |
download | barebox-16a3b9f241861aaf7ddd6f284e111aad291c508f.tar.gz barebox-16a3b9f241861aaf7ddd6f284e111aad291c508f.tar.xz |
kfifo: roundup fifo size to next power of two
Comments in include/kfifo.h state that the FIFO size will be rounded up
to the next power of two, but so far we haven't actually done this,
probably because we didn't have roundup_pow_of_two() back then when
kfifo support was added.
Fix that now and do what the comments state.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions