MAX_LOCAL_APIC
extern DECLARE_BITMAP(phys_cpu_present_map, MAX_LOCAL_APIC);
bitmap_zero(phys_cpu_present_map, MAX_LOCAL_APIC);
bitmap_copy(dst, phys_cpu_present_map, MAX_LOCAL_APIC);
extern s16 __apicid_to_node[MAX_LOCAL_APIC];
acpi_parse_sapic, MAX_LOCAL_APIC);
acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC, acpi_check_lapic, MAX_LOCAL_APIC);
madt_proc, ARRAY_SIZE(madt_proc), MAX_LOCAL_APIC);
DECLARE_BITMAP(phys_id_present_map, MAX_LOCAL_APIC);
static DECLARE_BITMAP(apic_id_map, MAX_LOCAL_APIC);
if (bitmap_empty(apic_id_map, MAX_LOCAL_APIC))
for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) {
for (i = apicid + 1; i < MAX_LOCAL_APIC; i++) {
if (apic_id >= MAX_LOCAL_APIC) {
pr_err_once("APIC ID %x exceeds kernel limit of: %x\n", apic_id, MAX_LOCAL_APIC - 1);
if (lvlid >= MAX_LOCAL_APIC)
if (lvlid >= MAX_LOCAL_APIC)
if (apic_id >= MAX_LOCAL_APIC)
DECLARE_BITMAP(phys_cpu_present_map, MAX_LOCAL_APIC) __read_mostly;
firstid = find_first_bit(apic_maps[TOPO_SMT_DOMAIN].map, MAX_LOCAL_APIC);
static struct { DECLARE_BITMAP(map, MAX_LOCAL_APIC); } apic_maps[TOPO_MAX_DOMAIN] __ro_after_init;
MAX_LOCAL_APIC, apicid);
if (apicid >= MAX_LOCAL_APIC)
bitmap_zero(phys_cpu_present_map, MAX_LOCAL_APIC);
#define domain_weight(_dom) bitmap_weight(apic_maps[_dom].map, MAX_LOCAL_APIC)
for (i = 0; i < MAX_LOCAL_APIC; i++)
s16 __apicid_to_node[MAX_LOCAL_APIC] = {
[0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE
if (apic_id >= MAX_LOCAL_APIC) {
if (apic_id >= MAX_LOCAL_APIC) {