|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/mach-apic: Drop apic_id_registered()
commit a384eef9e3ad34f73707f4784b62ca104859e535
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri Nov 8 18:27:24 2024 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Nov 11 15:25:38 2024 +0000
x86/mach-apic: Drop apic_id_registered()
It's an unnecessary wrapper.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/apic.c | 3 +--
xen/arch/x86/include/asm/mach-generic/mach_apic.h | 6 ------
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c
index 254ab5d388..9f3a374e95 100644
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -495,8 +495,7 @@ void setup_local_APIC(bool bsp)
/*
* Double-check whether this APIC is really registered.
*/
- if (!apic_id_registered())
- BUG();
+ BUG_ON(!physid_isset(get_apic_id(), phys_cpu_present_map));
/*
* Intel recommends to set DFR, LDR and TPR before enabling
diff --git a/xen/arch/x86/include/asm/mach-generic/mach_apic.h
b/xen/arch/x86/include/asm/mach-generic/mach_apic.h
index 50f39b72cc..3cf58d5f6b 100644
--- a/xen/arch/x86/include/asm/mach-generic/mach_apic.h
+++ b/xen/arch/x86/include/asm/mach-generic/mach_apic.h
@@ -45,12 +45,6 @@ static inline int multi_timer_check(int apic, int irq)
* really not sure why, since all local APICs should have distinct physical
* IDs, and we need to know what they are.
*/
-static inline int apic_id_registered(void)
-{
- return physid_isset(get_apic_id(),
- phys_cpu_present_map);
-}
-
static inline void ioapic_phys_id_map(physid_mask_t *map)
{
*map = phys_cpu_present_map;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |