* really not sure why, since all local APICs should have distinct physical
* IDs, and we need to know what they are.
*/
-static inline void ioapic_phys_id_map(physid_mask_t *map)
-{
- *map = phys_cpu_present_map;
-}
-
static inline int check_apicid_used(const physid_mask_t *map, int apicid)
{
return physid_isset(apicid, *map);
* This is broken; anything with a real cpu count has to
* circumvent this idiocy regardless.
*/
- ioapic_phys_id_map(&phys_id_present_map);
+ phys_id_present_map = phys_cpu_present_map;
/*
* Set the IOAPIC ID to the value stored in the MPC table.
*/
if (physids_empty(apic_id_map))
- ioapic_phys_id_map(&apic_id_map);
+ apic_id_map = phys_cpu_present_map;
spin_lock_irqsave(&ioapic_lock, flags);
reg_00.raw = io_apic_read(ioapic, 0);