From: Tejun Heo Date: Tue, 22 Feb 2011 10:10:08 +0000 (+0100) Subject: x86-64, NUMA: Prepare numa_emulation() for moving NUMA emulation into a separate... X-Git-Tag: v2.6.39-rc1~499^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe99959d1db85222829a64d869dcab704ac7ec8;p=pandora-kernel.git x86-64, NUMA: Prepare numa_emulation() for moving NUMA emulation into a separate file Update numa_emulation() such that, it - takes @numa_meminfo and @numa_dist_cnt instead of directly referencing the global variables. - copies the distance table by iterating each distance with node_distance() instead of memcpy'ing the distance table. - tests emu_cmdline to determine whether emulation is requested and fills emu_nid_to_phys[] with identity mapping if emulation is not used. This allows the caller to call numa_emulation() unconditionally and makes return value unncessary. - defines dummy version if CONFIG_NUMA_EMU is disabled. This patch doesn't introduce any behavior change. Signed-off-by: Tejun Heo Cc: Yinghai Lu Cc: Ingo Molnar --- Reading git-diff-tree failed