static int __init acpi_parse_processor_affinity (acpi_table_entry_header *header) { struct acpi_table_processor_affinity *processor_affinity = NULL; processor_affinity = (struct acpi_table_processor_affinity*) header; if (!processor_affinity) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ acpi_numa_processor_affinity_init(processor_affinity); return 0; }
static int __init acpi_parse_memory_affinity (acpi_table_entry_header *header) { struct acpi_table_memory_affinity *memory_affinity; memory_affinity = (struct acpi_table_memory_affinity*) header; if (!memory_affinity) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ acpi_numa_memory_affinity_init(memory_affinity); return 0; }
static int __init acpi_parse_processor_affinity(struct acpi_subtable_header *header, const unsigned long end) { struct acpi_srat_cpu_affinity *processor_affinity; processor_affinity = (struct acpi_srat_cpu_affinity *)header; if (!processor_affinity) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ acpi_numa_processor_affinity_init(processor_affinity); return 0; }
static int __init acpi_parse_memory_affinity(struct acpi_subtable_header * header, const unsigned long end) { struct acpi_srat_mem_affinity *memory_affinity = container_of(header, struct acpi_srat_mem_affinity, header); if (!memory_affinity) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ acpi_numa_memory_affinity_init(memory_affinity); return 0; }
static int __init acpi_parse_memory_affinity(struct acpi_subtable_header * header, const unsigned long end) { struct acpi_srat_mem_affinity *memory_affinity; memory_affinity = (struct acpi_srat_mem_affinity *)header; if (!memory_affinity) return -EINVAL; acpi_table_print_srat_entry(header); acpi_numa_memory_affinity_init(memory_affinity); return 0; }
static int __init acpi_parse_x2apic_affinity(struct acpi_subtable_header *header, const unsigned long end) { struct acpi_srat_x2apic_cpu_affinity *processor_affinity; processor_affinity = (struct acpi_srat_x2apic_cpu_affinity *)header; if (!processor_affinity) return -EINVAL; acpi_table_print_srat_entry(header); acpi_numa_x2apic_affinity_init(processor_affinity); return 0; }
static int __init acpi_parse_memory_affinity(struct acpi_subtable_header * header, const unsigned long end) { struct acpi_srat_mem_affinity *memory_affinity; memory_affinity = (struct acpi_srat_mem_affinity *)header; if (!memory_affinity) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ if (!acpi_numa_memory_affinity_init(memory_affinity)) parsed_numa_memblks++; return 0; }
static int __init acpi_parse_x2apic_affinity(struct acpi_subtable_header *header, const unsigned long end) { const struct acpi_srat_x2apic_cpu_affinity *processor_affinity = container_of(header, struct acpi_srat_x2apic_cpu_affinity, header); if (!header) return -EINVAL; acpi_table_print_srat_entry(header); /* let architecture-dependent part to do it */ acpi_numa_x2apic_affinity_init(processor_affinity); return 0; }