]> err.no Git - linux-2.6/commit
x86: cleanup setup_node_zones called by paging_init()
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Wed, 30 Jan 2008 12:33:09 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:09 +0000 (13:33 +0100)
commita261670aed2b5b77a20ce9b15fed57abeb126c0e
treeb0ad46aff4a4bfd2cc47193dc0b36074440976a1
parent94878efdd0815fe3a4159007b1454b25c7696d53
x86: cleanup setup_node_zones called by paging_init()

setup_node_zones() calcuates some variables but only use them when
FLAT_NODE_MEM_MAP is set

so change the MACRO postion to avoid calculating.

also change it to static, and rename it to flat_setup_node_zones().

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/numa_64.c