mm: only define hashdist variable when needed
authorRasmus Villemoes <[email protected]>
Wed, 24 Jun 2015 23:56:28 +0000 (16:56 -0700)
committerLinus Torvalds <[email protected]>
Thu, 25 Jun 2015 00:49:41 +0000 (17:49 -0700)
commita9919c79359df9a706ff9e14fc0a93cd15791c9b
tree32bb182bd88f0fb58bfe891b26290bf53b5a6d37
parenta67a31fa308a9032ead31b0501dafdb44ccf5a12
mm: only define hashdist variable when needed

For !CONFIG_NUMA, hashdist will always be 0, since it's setter is
otherwise compiled out.  So we can save 4 bytes of data and some .text
(although mostly in __init functions) by only defining it for
CONFIG_NUMA.

Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: David Rientjes <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/bootmem.h
mm/page_alloc.c