Lines Matching refs:cpu
254 static void uv_send_IPI_one(int cpu, int vector) in uv_send_IPI_one() argument
259 apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_send_IPI_one()
266 unsigned int cpu; in uv_send_IPI_mask() local
268 for_each_cpu(cpu, mask) in uv_send_IPI_mask()
269 uv_send_IPI_one(cpu, vector); in uv_send_IPI_mask()
275 unsigned int cpu; in uv_send_IPI_mask_allbutself() local
277 for_each_cpu(cpu, mask) { in uv_send_IPI_mask_allbutself()
278 if (cpu != this_cpu) in uv_send_IPI_mask_allbutself()
279 uv_send_IPI_one(cpu, vector); in uv_send_IPI_mask_allbutself()
286 unsigned int cpu; in uv_send_IPI_allbutself() local
288 for_each_online_cpu(cpu) { in uv_send_IPI_allbutself()
289 if (cpu != this_cpu) in uv_send_IPI_allbutself()
290 uv_send_IPI_one(cpu, vector); in uv_send_IPI_allbutself()
318 int unsigned cpu; in uv_cpu_mask_to_apicid_and() local
324 for_each_cpu_and(cpu, cpumask, andmask) { in uv_cpu_mask_to_apicid_and()
325 if (cpumask_test_cpu(cpu, cpu_online_mask)) in uv_cpu_mask_to_apicid_and()
329 if (likely(cpu < nr_cpu_ids)) { in uv_cpu_mask_to_apicid_and()
330 *apicid = per_cpu(x86_cpu_to_apicid, cpu) | uv_apicid_hibits; in uv_cpu_mask_to_apicid_and()
760 static void uv_heartbeat_enable(int cpu) in uv_heartbeat_enable() argument
762 while (!uv_cpu_hub_info(cpu)->scir.enabled) { in uv_heartbeat_enable()
763 struct timer_list *timer = &uv_cpu_hub_info(cpu)->scir.timer; in uv_heartbeat_enable()
765 uv_set_cpu_scir_bits(cpu, SCIR_CPU_HEARTBEAT|SCIR_CPU_ACTIVITY); in uv_heartbeat_enable()
766 setup_timer(timer, uv_heartbeat, cpu); in uv_heartbeat_enable()
768 add_timer_on(timer, cpu); in uv_heartbeat_enable()
769 uv_cpu_hub_info(cpu)->scir.enabled = 1; in uv_heartbeat_enable()
772 cpu = 0; in uv_heartbeat_enable()
777 static void uv_heartbeat_disable(int cpu) in uv_heartbeat_disable() argument
779 if (uv_cpu_hub_info(cpu)->scir.enabled) { in uv_heartbeat_disable()
780 uv_cpu_hub_info(cpu)->scir.enabled = 0; in uv_heartbeat_disable()
781 del_timer(&uv_cpu_hub_info(cpu)->scir.timer); in uv_heartbeat_disable()
783 uv_set_cpu_scir_bits(cpu, 0xff); in uv_heartbeat_disable()
792 long cpu = (long)hcpu; in uv_scir_cpu_notify() local
796 uv_heartbeat_enable(cpu); in uv_scir_cpu_notify()
799 uv_heartbeat_disable(cpu); in uv_scir_cpu_notify()
820 int cpu; in uv_init_heartbeat() local
823 for_each_online_cpu(cpu) in uv_init_heartbeat()
824 uv_heartbeat_enable(cpu); in uv_init_heartbeat()
877 int bytes, nid, cpu, lcpu, pnode, blade, i, j, m_val, n_val; in uv_system_init() local
962 for_each_present_cpu(cpu) { in uv_system_init()
963 int apicid = per_cpu(x86_cpu_to_apicid, cpu); in uv_system_init()
965 nid = cpu_to_node(cpu); in uv_system_init()
969 uv_cpu_hub_info(cpu)->pnode_mask = pnode_mask; in uv_system_init()
970 uv_cpu_hub_info(cpu)->apic_pnode_shift = uvh_apicid.s.pnode_shift; in uv_system_init()
971 uv_cpu_hub_info(cpu)->hub_revision = uv_hub_info->hub_revision; in uv_system_init()
973 uv_cpu_hub_info(cpu)->m_shift = 64 - m_val; in uv_system_init()
974 uv_cpu_hub_info(cpu)->n_lshift = n_lshift; in uv_system_init()
984 uv_cpu_hub_info(cpu)->lowmem_remap_base = lowmem_redir_base; in uv_system_init()
985 uv_cpu_hub_info(cpu)->lowmem_remap_top = lowmem_redir_size; in uv_system_init()
986 uv_cpu_hub_info(cpu)->m_val = m_val; in uv_system_init()
987 uv_cpu_hub_info(cpu)->n_val = n_val; in uv_system_init()
988 uv_cpu_hub_info(cpu)->numa_blade_id = blade; in uv_system_init()
989 uv_cpu_hub_info(cpu)->blade_processor_id = lcpu; in uv_system_init()
990 uv_cpu_hub_info(cpu)->pnode = pnode; in uv_system_init()
991 uv_cpu_hub_info(cpu)->gpa_mask = (1UL << (m_val + n_val)) - 1; in uv_system_init()
992 uv_cpu_hub_info(cpu)->gnode_upper = gnode_upper; in uv_system_init()
993 uv_cpu_hub_info(cpu)->gnode_extra = gnode_extra; in uv_system_init()
994 uv_cpu_hub_info(cpu)->global_mmr_base = mmr_base; in uv_system_init()
995 uv_cpu_hub_info(cpu)->coherency_domain_number = sn_coherency_id; in uv_system_init()
996 uv_cpu_hub_info(cpu)->scir.offset = uv_scir_offset(apicid); in uv_system_init()
998 uv_cpu_to_blade[cpu] = blade; in uv_system_init()