diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-12-11 16:00:29 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 17:22:22 -0800 |
commit | e5adfffc857788c8b7eca0e98cf1e26f1964b292 (patch) | |
tree | 8d1ac37aa649a060055162b59cb06e8ca63f7a68 /include/linux/gfp.h | |
parent | 19965460e31c73a934d2c19c152f876a75bdff3e (diff) | |
download | op-kernel-dev-e5adfffc857788c8b7eca0e98cf1e26f1964b292.zip op-kernel-dev-e5adfffc857788c8b7eca0e98cf1e26f1964b292.tar.gz |
mm: use IS_ENABLED(CONFIG_NUMA) instead of NUMA_BUILD
We don't need custom NUMA_BUILD anymore, since we have handy
IS_ENABLED().
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r-- | include/linux/gfp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index d0a7967..31e8041 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -266,7 +266,7 @@ static inline enum zone_type gfp_zone(gfp_t flags) static inline int gfp_zonelist(gfp_t flags) { - if (NUMA_BUILD && unlikely(flags & __GFP_THISNODE)) + if (IS_ENABLED(CONFIG_NUMA) && unlikely(flags & __GFP_THISNODE)) return 1; return 0; |