mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/genapic: drop .target_cpus() hook
All flavors specify target_cpus_all() anyway - replace use of the hook by &cpu_online_map. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
0670eac350
commit
d3a4bb8ca0
4 files changed
+1
-13
No files matched your search
@@ -5,12 +5,6 @@
|
||||
#include <asm/hardirq.h>
|
||||
#include <mach_apic.h>
|
||||
|
||||
|
||||
const cpumask_t *target_cpus_all(void)
|
||||
{
|
||||
return &cpu_online_map;
|
||||
}
|
||||
|
||||
/*
|
||||
* LOGICAL FLAT DELIVERY MODE (multicast via bitmask to <= 8 logical APIC IDs).
|
||||
*/
|
||||
|
||||
@@ -169,7 +169,6 @@ static const struct genapic apic_x2apic_phys = {
|
||||
.int_dest_mode = 0 /* physical delivery */,
|
||||
.init_apic_ldr = init_apic_ldr_x2apic_phys,
|
||||
.clustered_apic_check = clustered_apic_check_x2apic,
|
||||
.target_cpus = target_cpus_all,
|
||||
.vector_allocation_cpumask = vector_allocation_cpumask_phys,
|
||||
.cpu_mask_to_apicid = cpu_mask_to_apicid_phys,
|
||||
.send_IPI_mask = send_IPI_mask_x2apic_phys,
|
||||
@@ -182,7 +181,6 @@ static const struct genapic apic_x2apic_cluster = {
|
||||
.int_dest_mode = 1 /* logical delivery */,
|
||||
.init_apic_ldr = init_apic_ldr_x2apic_cluster,
|
||||
.clustered_apic_check = clustered_apic_check_x2apic,
|
||||
.target_cpus = target_cpus_all,
|
||||
.vector_allocation_cpumask = vector_allocation_cpumask_x2apic_cluster,
|
||||
.cpu_mask_to_apicid = cpu_mask_to_apicid_x2apic_cluster,
|
||||
.send_IPI_mask = send_IPI_mask_x2apic_cluster,
|
||||
|
||||
@@ -33,7 +33,6 @@ struct genapic {
|
||||
int int_dest_mode;
|
||||
void (*init_apic_ldr)(void);
|
||||
void (*clustered_apic_check)(void);
|
||||
const cpumask_t *(*target_cpus)(void);
|
||||
const cpumask_t *(*vector_allocation_cpumask)(int cpu);
|
||||
unsigned int (*cpu_mask_to_apicid)(const cpumask_t *cpumask);
|
||||
void (*send_IPI_mask)(const cpumask_t *mask, int vector);
|
||||
@@ -51,7 +50,6 @@ struct genapic {
|
||||
extern const struct genapic *genapic;
|
||||
extern const struct genapic apic_default;
|
||||
|
||||
const cpumask_t *target_cpus_all(void);
|
||||
void send_IPI_self_legacy(uint8_t vector);
|
||||
|
||||
void init_apic_ldr_flat(void);
|
||||
@@ -64,7 +62,6 @@ const cpumask_t *vector_allocation_cpumask_flat(int cpu);
|
||||
.int_dest_mode = 1 /* logical delivery */, \
|
||||
.init_apic_ldr = init_apic_ldr_flat, \
|
||||
.clustered_apic_check = clustered_apic_check_flat, \
|
||||
.target_cpus = target_cpus_all, \
|
||||
.vector_allocation_cpumask = vector_allocation_cpumask_flat, \
|
||||
.cpu_mask_to_apicid = cpu_mask_to_apicid_flat, \
|
||||
.send_IPI_mask = send_IPI_mask_flat, \
|
||||
@@ -80,7 +77,6 @@ const cpumask_t *vector_allocation_cpumask_phys(int cpu);
|
||||
.int_dest_mode = 0 /* physical delivery */, \
|
||||
.init_apic_ldr = init_apic_ldr_phys, \
|
||||
.clustered_apic_check = clustered_apic_check_phys, \
|
||||
.target_cpus = target_cpus_all, \
|
||||
.vector_allocation_cpumask = vector_allocation_cpumask_phys, \
|
||||
.cpu_mask_to_apicid = cpu_mask_to_apicid_phys, \
|
||||
.send_IPI_mask = send_IPI_mask_phys, \
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
/* The following are dependent on APIC delivery mode (logical vs. physical). */
|
||||
#define INT_DELIVERY_MODE (genapic->int_delivery_mode)
|
||||
#define INT_DEST_MODE (genapic->int_dest_mode)
|
||||
#define TARGET_CPUS (genapic->target_cpus())
|
||||
#define TARGET_CPUS ((const typeof(cpu_online_map) *)&cpu_online_map)
|
||||
#define init_apic_ldr (genapic->init_apic_ldr)
|
||||
#define clustered_apic_check (genapic->clustered_apic_check)
|
||||
#define cpu_mask_to_apicid (genapic->cpu_mask_to_apicid)
|
||||
|
||||