예제 #1
0
파일: numa.c 프로젝트: sarnobat/knoppix
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;
}
예제 #2
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;
}
예제 #3
0
파일: numa.c 프로젝트: ANFS/ANFS-kernel
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;
}
예제 #4
0
파일: numa.c 프로젝트: CPFL/xen
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;
}
예제 #5
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;
}
예제 #6
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;
}
예제 #7
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;
}
예제 #8
0
파일: numa.c 프로젝트: chao-p/xen
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;
}