]> Git Repo - qemu.git/commit
NUMA: Replace MAX_NODES with nb_numa_nodes in for loop
authorDou Liyang <[email protected]>
Tue, 22 Aug 2017 07:45:36 +0000 (15:45 +0800)
committerEduardo Habkost <[email protected]>
Tue, 19 Sep 2017 19:51:33 +0000 (16:51 -0300)
commitf51878ba863d1f6938bc8e04381979767b7b508c
tree48b31fa8b150b9a980f99a98d1460f2e92b53939
parent79e0793614fcd6b5674fa96180b66971c37d1dfd
NUMA: Replace MAX_NODES with nb_numa_nodes in for loop

In QEMU, the number of the NUMA nodes is determined by parse_numa_opts().
Then, QEMU uses it for iteration, for example:
  for (i = 0; i < nb_numa_nodes; i++)

However, in memory_region_allocate_system_memory(), it uses MAX_NODES
not nb_numa_nodes.

So, replace MAX_NODES with nb_numa_nodes to keep code consistency and
reduce the loop times.

Signed-off-by: Dou Liyang <[email protected]>
Message-Id: <1503387936[email protected]>
Reviewed-by: Igor Mammedov <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
numa.c
This page took 0.025309 seconds and 4 git commands to generate.