diff options
| author | Christophe JAILLET <[email protected]> | 2023-02-02 21:58:10 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2023-02-24 12:22:45 +0200 |
| commit | 4a51e66fe96dfde76894c4eb445ef1b14d312014 (patch) | |
| tree | b36c497fd3001b9c3481d43371afae6b949f4db5 /tools/perf/scripts/python/compaction-times.py | |
| parent | 60b7d62ba8cdbd073997bff0f1cdae8d844002c0 (diff) | |
wifi: wcn36xx: Slightly optimize PREPARE_HAL_BUF()
In most (likely all) cases, INIT_HAL_MSG() is called before
PREPARE_HAL_BUF().
In such cases calling memset() is useless because:
msg_body.header.len = sizeof(msg_body)
So, instead of writing twice the memory, we just have a sanity check to
make sure that some potential trailing memory is zeroed.
It even gives the opportunity to see that by itself and optimize it away.
Signed-off-by: Christophe JAILLET <[email protected]>
Acked-by: Loic Poulain <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/7d8ab7fee45222cdbaf80c507525f2d3941587c1.1675371372.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions