Now that GENAPIC_FLAT uses physical destination for external interrupts,
these functions implementing logical flat for external interrupts are no
longer used.
No functional change.
Signed-off-by: Matthew Barnes <matthew.barnes@cloud.com>
---
xen/arch/x86/genapic/delivery.c | 10 ----------
xen/arch/x86/include/asm/genapic.h | 2 --
2 files changed, 12 deletions(-)
diff --git a/xen/arch/x86/genapic/delivery.c b/xen/arch/x86/genapic/delivery.c
index d1f99bf6834a..3def78f380d3 100644
--- a/xen/arch/x86/genapic/delivery.c
+++ b/xen/arch/x86/genapic/delivery.c
@@ -19,16 +19,6 @@ void cf_check init_apic_ldr_flat(void)
apic_write(APIC_LDR, val);
}
-const cpumask_t *cf_check vector_allocation_cpumask_flat(int cpu)
-{
- return &cpu_online_map;
-}
-
-unsigned int cf_check cpu_mask_to_apicid_flat(const cpumask_t *cpumask)
-{
- return cpumask_bits(cpumask)[0]&0xFF;
-}
-
/*
* PHYSICAL DELIVERY MODE (unicast to physical APIC IDs).
*/
diff --git a/xen/arch/x86/include/asm/genapic.h b/xen/arch/x86/include/asm/genapic.h
index d29bccc39b4b..91fdeaca47b3 100644
--- a/xen/arch/x86/include/asm/genapic.h
+++ b/xen/arch/x86/include/asm/genapic.h
@@ -44,10 +44,8 @@ extern const struct genapic apic_bigsmp;
void cf_check send_IPI_self_legacy(uint8_t vector);
void cf_check init_apic_ldr_flat(void);
-unsigned int cf_check cpu_mask_to_apicid_flat(const cpumask_t *cpumask);
const cpumask_t *cf_check vector_allocation_cpumask_phys(int cpu);
void cf_check send_IPI_mask_flat(const cpumask_t *cpumask, int vector);
-const cpumask_t *cf_check vector_allocation_cpumask_flat(int cpu);
#define GENAPIC_FLAT \
.int_delivery_mode = dest_Fixed, \
.int_dest_mode = 0 /* physical delivery */, \
--
2.46.0
On Wed, Oct 02, 2024 at 04:17:25PM +0100, Matthew Barnes wrote: > Now that GENAPIC_FLAT uses physical destination for external interrupts, > these functions implementing logical flat for external interrupts are no > longer used. I think it's fine to merge this with the previous commit, so that the functions are removed at the point there are no longer used. Thanks, Roger.
On 03.10.2024 12:51, Roger Pau Monné wrote: > On Wed, Oct 02, 2024 at 04:17:25PM +0100, Matthew Barnes wrote: >> Now that GENAPIC_FLAT uses physical destination for external interrupts, >> these functions implementing logical flat for external interrupts are no >> longer used. > > I think it's fine to merge this with the previous commit, so that the > functions are removed at the point there are no longer used. Indeed - no reason to even transiently introduce new Misra violations. Jan
© 2016 - 2024 Red Hat, Inc.