Lines Matching full:affinity

12 #include "affinity.h"
145 * The real cpu mask is part of the affinity struct but it has to be in node_affinity_init()
386 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_destroy()
436 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_create()
512 … "Number of kernel receive queues is too large for completion vector affinity to be effective\n"); in _dev_comp_vect_cpu_mask_init()
541 hfi1_cdbg(AFFINITY, in _dev_comp_vect_cpu_mask_init()
542 "[%s] Completion vector affinity CPU set(s) %*pbl", in _dev_comp_vect_cpu_mask_init()
581 * Interrupt affinity.
606 * If this is the first time this NUMA node's affinity is used, in hfi1_dev_affinity_init()
607 * create an entry in the global affinity structure and initialize it. in hfi1_dev_affinity_init()
613 "Unable to allocate global affinity node\n"); in hfi1_dev_affinity_init()
735 * Function updates the irq affinity hint for msix after it has been changed
802 * This is required by affinity notifier. We don't have anything to in hfi1_irq_notifier_release()
816 pr_err("Failed to register sdma irq affinity notifier for irq %d\n", in hfi1_setup_sdma_notifier()
825 pr_err("Failed to cleanup sdma irq affinity notifier for irq %d\n", in hfi1_cleanup_sdma_notifier()
830 * Function sets the irq affinity for msix.
964 struct hfi1_affinity_node_list *affinity) in find_hw_thread_mask() argument
968 affinity->num_core_siblings / in find_hw_thread_mask()
971 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
972 if (affinity->num_core_siblings > 0) { in find_hw_thread_mask()
1001 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_get_proc_affinity() local
1002 struct cpu_mask_set *set = &affinity->proc; in hfi1_get_proc_affinity()
1005 * check whether process/context affinity has already in hfi1_get_proc_affinity()
1009 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU %*pbl", in hfi1_get_proc_affinity()
1020 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU set(s) %*pbl", in hfi1_get_proc_affinity()
1027 * The process does not have a preset CPU affinity so find one to in hfi1_get_proc_affinity()
1060 mutex_lock(&affinity->lock); in hfi1_get_proc_affinity()
1090 if (affinity->num_core_siblings > 0) { in hfi1_get_proc_affinity()
1091 for (i = 0; i < affinity->num_core_siblings; i++) { in hfi1_get_proc_affinity()
1092 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
1166 mutex_unlock(&affinity->lock); in hfi1_get_proc_affinity()
1182 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_put_proc_affinity() local
1183 struct cpu_mask_set *set = &affinity->proc; in hfi1_put_proc_affinity()
1188 mutex_lock(&affinity->lock); in hfi1_put_proc_affinity()
1191 mutex_unlock(&affinity->lock); in hfi1_put_proc_affinity()