aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2024-03-27 15:23:50 +0000
committerDavid S. Miller <[email protected]>2024-04-01 09:49:28 +0000
commitb44759705f7dc95d539d145b4c2edcaf079e7c33 (patch)
tree859e58c21568679e93175823146117e6d55c74f6 /lib/test_bitmap.c
parentbitmap: introduce generic optimized bitmap_size() (diff)
downloadkernel-b44759705f7dc95d539d145b4c2edcaf079e7c33.tar.gz
kernel-b44759705f7dc95d539d145b4c2edcaf079e7c33.zip
bitmap: make bitmap_{get,set}_value8() use bitmap_{read,write}()
Now that we have generic bitmap_read() and bitmap_write(), which are inline and try to take care of non-bound-crossing and aligned cases to keep them optimized, collapse bitmap_{get,set}_value8() into simple wrappers around the former ones. bloat-o-meter shows no difference in vmlinux and -2 bytes for gpio-pca953x.ko, which says the optimization didn't suffer due to that change. The converted helpers have the value width embedded and always compile-time constant and that helps a lot. Suggested-by: Yury Norov <[email protected]> Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Alexander Lobakin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions