diff --git a/xen/arch/x86/genapic/delivery.c b/xen/arch/x86/genapic/delivery.c index a86b8c9422..36ef033e65 100644 --- a/xen/arch/x86/genapic/delivery.c +++ b/xen/arch/x86/genapic/delivery.c @@ -40,11 +40,7 @@ unsigned int cpu_mask_to_apicid_flat(const cpumask_t *cpumask) void init_apic_ldr_phys(void) { - unsigned long val; - apic_write(APIC_DFR, APIC_DFR_FLAT); - /* A dummy logical ID should be fine. We only deliver in phys mode. */ - val = apic_read(APIC_LDR) & ~APIC_LDR_MASK; - apic_write(APIC_LDR, val); + /* We only deliver in phys mode - no setup needed. */ } void __init clustered_apic_check_phys(void) diff --git a/xen/arch/x86/genapic/x2apic.c b/xen/arch/x86/genapic/x2apic.c index 74907e6002..d5a17f10d5 100644 --- a/xen/arch/x86/genapic/x2apic.c +++ b/xen/arch/x86/genapic/x2apic.c @@ -38,10 +38,6 @@ static inline u32 x2apic_cluster(unsigned int cpu) return per_cpu(cpu_2_logical_apicid, cpu) >> 16; } -static void init_apic_ldr_x2apic_phys(void) -{ -} - static void init_apic_ldr_x2apic_cluster(void) { unsigned int cpu, this_cpu = smp_processor_id(); @@ -167,7 +163,7 @@ static const struct genapic __initconstrel apic_x2apic_phys = { APIC_INIT("x2apic_phys", NULL), .int_delivery_mode = dest_Fixed, .int_dest_mode = 0 /* physical delivery */, - .init_apic_ldr = init_apic_ldr_x2apic_phys, + .init_apic_ldr = init_apic_ldr_phys, .clustered_apic_check = clustered_apic_check_x2apic, .vector_allocation_cpumask = vector_allocation_cpumask_phys, .cpu_mask_to_apicid = cpu_mask_to_apicid_phys,