Lines Matching refs:apicid
78 static void cpu_mark_primary_thread(unsigned int cpu, unsigned int apicid) in cpu_mark_primary_thread() argument
80 if (!(apicid & (__max_threads_per_core - 1))) in cpu_mark_primary_thread()
84 static inline void cpu_mark_primary_thread(unsigned int cpu, unsigned int apicid) { } in cpu_mark_primary_thread() argument
91 static inline u32 topo_apicid(u32 apicid, enum x86_topology_domains dom) in topo_apicid() argument
94 return apicid; in topo_apicid()
95 return apicid & (UINT_MAX << x86_topo_system.dom_shifts[dom - 1]); in topo_apicid()
325 int topology_get_logical_id(u32 apicid, enum x86_topology_domains at_level) in topology_get_logical_id() argument
328 unsigned int lvlid = topo_apicid(apicid, at_level); in topology_get_logical_id()
357 unsigned int topology_unit_count(u32 apicid, enum x86_topology_domains which_units, in topology_unit_count() argument
361 unsigned int lvlid = topo_apicid(apicid, at_level); in topology_unit_count()
466 u32 apicid, firstid; in topology_init_possible_cpus() local
531 for (apicid = 0; disabled; disabled--, apicid++) { in topology_init_possible_cpus()
532 apicid = find_next_andnot_bit(apic_maps[TOPO_SMT_DOMAIN].map, phys_cpu_present_map, in topology_init_possible_cpus()
533 MAX_LOCAL_APIC, apicid); in topology_init_possible_cpus()
534 if (apicid >= MAX_LOCAL_APIC) in topology_init_possible_cpus()
536 cpuid_to_apicid[topo_info.nr_assigned_cpus++] = apicid; in topology_init_possible_cpus()
540 apicid = cpuid_to_apicid[cpu]; in topology_init_possible_cpus()
544 if (apicid == BAD_APICID) in topology_init_possible_cpus()
547 cpu_mark_primary_thread(cpu, apicid); in topology_init_possible_cpus()
548 set_cpu_present(cpu, test_bit(apicid, phys_cpu_present_map)); in topology_init_possible_cpus()