|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH v1 16/21] ARM: NUMA: Extract proximity from SRAT table
On 03/03/17 14:45, Vijay Kilari wrote: On Fri, Mar 3, 2017 at 7:22 PM, Julien Grall <julien.grall@xxxxxxx> wrote:On 03/03/17 13:50, Vijay Kilari wrote:On Fri, Mar 3, 2017 at 7:14 PM, Julien Grall <julien.grall@xxxxxxx> wrote: I think you misunderstood what I suggested. I only asked to do something like:
int __init acpi_numa_init(void)
{
if (!acpi_parse_table(....)) {
acpi_table_parse_srat(TYPE_CPU_AFFINITY);
acpi_table_parse_srat(TYPE_MEMORY_AFFINITY);
acpi_table_arch_parse_srat();
}
}
And then for x86
void acpi_table_arch_parse_start(void)
{
acpi_table_parse_srat(TYPE_X2APIC_CPU_AFFINITY);
}
And for ARM
void acpi_table_arch_parse_start(void)
{
acpi_table_parse_srat(TYPE_GICC_AFFINITY);
}
The code is still as common but a function is called for arch specific
setup. This does not require any ifdefery.
I have another idea where in, if all the NUMA ACPI code is programmed under CONFIG_NUMA and only initialization is kept under CONFIG_ACPI_NUMA similar to x86 then we don't need to pollute this header much and limit the changes. I will try to implement this and see how simple it can go and let you know. OK? I don't want to see the common header polluted with #ifdef CONFIG_X86 and #ifdef CONFIG_ARM. This is just not right. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |