]> git.baikalelectronics.ru Git - kernel.git/commit
x86-64, NUMA: Clean up initmem_init()
authorDavid Rientjes <rientjes@google.com>
Fri, 4 Mar 2011 14:17:21 +0000 (15:17 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 4 Mar 2011 14:17:21 +0000 (15:17 +0100)
commit838724f4162c9fa7906740344d9babc8c3da2acb
treedeff33cfb836cc7797916062c7d244fb71d3ac30
parent34afc1973d196f81c912a552973115527c3b192c
x86-64, NUMA: Clean up initmem_init()

This patch cleans initmem_init() so that it is more readable and doesn't
use an unnecessary array of function pointers to convolute the flow of
the code.  It also makes it obvious that dummy_numa_init() will always
succeed (and documents that requirement) so that the existing BUG() is
never actually reached.

No functional change.

-tj: Updated comment for dummy_numa_init() slightly.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/mm/numa_64.c