diff options
| author | Rasmus Villemoes <[email protected]> | 2019-05-14 22:42:43 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-05-15 02:52:49 +0000 |
| commit | cdc90a1871d6e64080f4506e900c6ef88e6fb39f (patch) | |
| tree | f37b1888fd3fd310225101cc4d148d23e2191d0c /lib/math/cordic.c | |
| parent | lib/bitmap.c: remove unused EXPORT_SYMBOLs (diff) | |
| download | kernel-cdc90a1871d6e64080f4506e900c6ef88e6fb39f.tar.gz kernel-cdc90a1871d6e64080f4506e900c6ef88e6fb39f.zip | |
lib/bitmap.c: guard exotic bitmap functions by CONFIG_NUMA
The bitmap_remap, _bitremap, _onto and _fold functions are only used,
via their node_ wrappers, in mm/mempolicy.c, which is only built for
CONFIG_NUMA. The helper bitmap_ord_to_pos used by these functions is
global, but its only external caller is node_random() in lib/nodemask.c,
which is also guarded by CONFIG_NUMA.
For !CONFIG_NUMA:
add/remove: 0/6 grow/shrink: 0/0 up/down: 0/-621 (-621)
Function old new delta
bitmap_pos_to_ord 20 - -20
bitmap_ord_to_pos 70 - -70
bitmap_bitremap 81 - -81
bitmap_fold 113 - -113
bitmap_onto 123 - -123
bitmap_remap 214 - -214
Total: Before=4776, After=4155, chg -13.00%
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Yury Norov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/math/cordic.c')
0 files changed, 0 insertions, 0 deletions
