mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/mach-apic: Drop apic_id_registered()
It's an unnecessary wrapper. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
0a51e5e17b
commit
a384eef9e3
2 files changed
+1
-8
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||