diff options
author | Yury Norov <ynorov@caviumnetworks.com> | 2018-06-08 02:10:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-08 02:34:39 +0200 |
commit | ca1250bbd4e0b852cafbc94d4d2610171107b252 (patch) | |
tree | 38d893c0658fb8db474ffe68934db200b412695a /lib/locking-selftest-softirq.h | |
parent | get_maintainer: improve patch recognition (diff) | |
download | linux-ca1250bbd4e0b852cafbc94d4d2610171107b252.tar.xz linux-ca1250bbd4e0b852cafbc94d4d2610171107b252.zip |
lib/bitmap.c: micro-optimization for __bitmap_complement()
Use BITS_TO_LONGS() macro to avoid calculation of reminder (bits %
BITS_PER_LONG) On ARM64 it saves 5 instruction for function - 16 before
and 11 after.
Link: http://lkml.kernel.org/r/20180411145914.6011-1-ynorov@caviumnetworks.com
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/locking-selftest-softirq.h')
0 files changed, 0 insertions, 0 deletions