diff options
author | Tejun Heo <tj@kernel.org> | 2011-02-22 05:10:08 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-02-22 05:10:08 -0500 |
commit | 90e6b677b47ff8c5ba1637941af6b9f92723b003 (patch) | |
tree | 0d1a4a2d0bc9b09e1764d2e09d875cae3e55c86e /arch/x86/mm/numa_emulation.c | |
parent | b8ef9172b2aad7eeb1fcd37a9e632c7b24da1f64 (diff) |
x86-64, NUMA: Add proper function comments to global functions
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'arch/x86/mm/numa_emulation.c')
-rw-r--r-- | arch/x86/mm/numa_emulation.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/arch/x86/mm/numa_emulation.c b/arch/x86/mm/numa_emulation.c index 23fa2d00253a..607a2e8bc87a 100644 --- a/arch/x86/mm/numa_emulation.c +++ b/arch/x86/mm/numa_emulation.c | |||
@@ -267,9 +267,32 @@ static int __init split_nodes_size_interleave(struct numa_meminfo *ei, | |||
267 | return 0; | 267 | return 0; |
268 | } | 268 | } |
269 | 269 | ||
270 | /* | 270 | /** |
271 | * Sets up the system RAM area from start_pfn to last_pfn according to the | 271 | * numa_emulation - Emulate NUMA nodes |
272 | * numa=fake command-line option. | 272 | * @numa_meminfo: NUMA configuration to massage |
273 | * @numa_dist_cnt: The size of the physical NUMA distance table | ||
274 | * | ||
275 | * Emulate NUMA nodes according to the numa=fake kernel parameter. | ||
276 | * @numa_meminfo contains the physical memory configuration and is modified | ||
277 | * to reflect the emulated configuration on success. @numa_dist_cnt is | ||
278 | * used to determine the size of the physical distance table. | ||
279 | * | ||
280 | * On success, the following modifications are made. | ||
281 | * | ||
282 | * - @numa_meminfo is updated to reflect the emulated nodes. | ||
283 | * | ||
284 | * - __apicid_to_node[] is updated such that APIC IDs are mapped to the | ||
285 | * emulated nodes. | ||
286 | * | ||
287 | * - NUMA distance table is rebuilt to represent distances between emulated | ||
288 | * nodes. The distances are determined considering how emulated nodes | ||
289 | * are mapped to physical nodes and match the actual distances. | ||
290 | * | ||
291 | * - emu_nid_to_phys[] reflects how emulated nodes are mapped to physical | ||
292 | * nodes. This is used by numa_add_cpu() and numa_remove_cpu(). | ||
293 | * | ||
294 | * If emulation is not enabled or fails, emu_nid_to_phys[] is filled with | ||
295 | * identity mapping and no other modification is made. | ||
273 | */ | 296 | */ |
274 | void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt) | 297 | void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt) |
275 | { | 298 | { |