]> git.baikalelectronics.ru Git - kernel.git/commit
mm: only define hashdist variable when needed
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 24 Jun 2015 23:56:28 +0000 (16:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:41 +0000 (17:49 -0700)
commit2b1add9fe2abc9c9ac35d0a75fe638e2707dc9e3
tree32bb182bd88f0fb58bfe891b26290bf53b5a6d37
parent6b882bb5dda1d80d0f64f821881032a8ce99d94a
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 <linux@rasmusvillemoes.dk>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/bootmem.h
mm/page_alloc.c