summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/apic/x2apic_cluster.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2023-08-08 15:04:12 -0700
committerDave Hansen <dave.hansen@linux.intel.com>2023-08-09 11:58:32 -0700
commitd8666cf780203fe016f13e7d5d1af50811dc01b5 (patch)
treeac23ceb6dd9302c22ad5d743bec364a4fa07cdbb /arch/x86/kernel/apic/x2apic_cluster.c
parentb5a5ce58d3d22ce560305ef9c70a2ec21fb887ba (diff)
downloadlinux-d8666cf780203fe016f13e7d5d1af50811dc01b5.tar.gz
linux-d8666cf780203fe016f13e7d5d1af50811dc01b5.tar.bz2
linux-d8666cf780203fe016f13e7d5d1af50811dc01b5.zip
x86/apic: Sanitize APIC ID range validation
Now that everything has apic::max_apic_id set and the eventual update for the x2APIC case is in place, switch the apic_id_valid() helper to use apic::max_apic_id and remove the apic::apic_id_valid() callback. [ dhansen: Fix subject typo ] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Michael Kelley <mikelley@microsoft.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
Diffstat (limited to 'arch/x86/kernel/apic/x2apic_cluster.c')
-rw-r--r--arch/x86/kernel/apic/x2apic_cluster.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c
index a164764cb166..12b9c310f3f5 100644
--- a/arch/x86/kernel/apic/x2apic_cluster.c
+++ b/arch/x86/kernel/apic/x2apic_cluster.c
@@ -226,7 +226,6 @@ static struct apic apic_x2apic_cluster __ro_after_init = {
.name = "cluster x2apic",
.probe = x2apic_cluster_probe,
.acpi_madt_oem_check = x2apic_acpi_madt_oem_check,
- .apic_id_valid = x2apic_apic_id_valid,
.delivery_mode = APIC_DELIVERY_MODE_FIXED,
.dest_mode_logical = true,