aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bitmap.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-07-25 16:39:17 +0000
committerYury Norov <[email protected]>2022-08-01 15:13:21 +0000
commit36d4b36b69590fed99356a4426c940a253a93800 (patch)
tree576e489e2045ff13c7e1a39fce8085a97bb7025e /tools/lib/bitmap.c
parentpowerpc: drop dependency on <asm/machdep.h> in archrandom.h (diff)
downloadkernel-36d4b36b69590fed99356a4426c940a253a93800.tar.gz
kernel-36d4b36b69590fed99356a4426c940a253a93800.zip
lib/nodemask: inline next_node_in() and node_random()
The functions are pretty thin wrappers around find_bit engine, and keeping them in c-file prevents compiler from small_const_nbits() optimization, which must take place for all systems with MAX_NUMNODES less than BITS_PER_LONG (default is 16 for me). Moving them to header file doesn't blow up the kernel size: add/remove: 1/2 grow/shrink: 9/5 up/down: 968/-88 (880) CC: Andy Shevchenko <[email protected]> CC: Benjamin Herrenschmidt <[email protected]> CC: Michael Ellerman <[email protected]> CC: Paul Mackerras <[email protected]> CC: Rasmus Villemoes <[email protected]> CC: Stephen Rothwell <[email protected]> CC: [email protected] Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'tools/lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions