|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN RFC PATCH 30/40] xen: move NUMA memory and CPU parsed nodemasks to common
Hi Wei, On 11/08/2021 11:24, Wei Chen wrote: Both memory_nodes_parsed and processor_nodes_parsed are using for Arm and x86 to record parded NUMA memory and CPU. So we move them to common. Looking at the usage, they both call: numa_set...(..., bitmap)So rather than exporting the two helpers, could we simply add helpers to abstract it? Signed-off-by: Wei Chen <wei.chen@xxxxxxx> --- xen/arch/arm/numa_device_tree.c | 2 -- xen/arch/x86/srat.c | 3 --- xen/common/numa.c | 3 +++ xen/include/xen/nodemask.h | 2 ++ 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/numa_device_tree.c b/xen/arch/arm/numa_device_tree.c index 27ffb72f7b..f74b7f6427 100644 --- a/xen/arch/arm/numa_device_tree.c +++ b/xen/arch/arm/numa_device_tree.c @@ -25,8 +25,6 @@ #include <asm/setup.h>s8 device_tree_numa = 0;-static nodemask_t processor_nodes_parsed __initdata; -static nodemask_t memory_nodes_parsed __initdata; This is code that was introduced in a previous patch. In general, it is better to do the rework first and then add the new code. This makes easier to follow series as the code added is not changed. static int srat_disabled(void) Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |