diff options
| author | Christophe JAILLET <[email protected]> | 2021-11-21 20:12:54 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-11-22 14:30:57 +0000 |
| commit | 5e6c7ccd3ea4b25dd6b4b0363859913f315deacb (patch) | |
| tree | 9cd6b189dea63dc7e9cd1d9293f6cfa4acd7f879 /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | 08a7abf4aff1a42290fd20ff7a5fa8a3ff5f90e7 (diff) | |
qed: Use the bitmap API to simplify some functions
'cid_map' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Also change some 'memset()' into 'bitmap_zero()' to keep consistency. This
is also much less verbose.
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions