Lines Matching full:affinity

54 #include "affinity.h"
186 * The real cpu mask is part of the affinity struct but it has to be in node_affinity_init()
427 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_destroy()
477 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_create()
551 … "Number of kernel receive queues is too large for completion vector affinity to be effective\n"); in _dev_comp_vect_cpu_mask_init()
580 hfi1_cdbg(AFFINITY, in _dev_comp_vect_cpu_mask_init()
581 "[%s] Completion vector affinity CPU set(s) %*pbl", in _dev_comp_vect_cpu_mask_init()
620 * Interrupt affinity.
656 * If this is the first time this NUMA node's affinity is used, in hfi1_dev_affinity_init()
657 * create an entry in the global affinity structure and initialize it. in hfi1_dev_affinity_init()
663 "Unable to allocate global affinity node\n"); in hfi1_dev_affinity_init()
785 * Function updates the irq affinity hint for msix after it has been changed
852 * This is required by affinity notifier. We don't have anything to in hfi1_irq_notifier_release()
866 pr_err("Failed to register sdma irq affinity notifier for irq %d\n", in hfi1_setup_sdma_notifier()
875 pr_err("Failed to cleanup sdma irq affinity notifier for irq %d\n", in hfi1_cleanup_sdma_notifier()
880 * Function sets the irq affinity for msix.
1005 struct hfi1_affinity_node_list *affinity) in find_hw_thread_mask() argument
1009 affinity->num_core_siblings / in find_hw_thread_mask()
1012 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
1013 if (affinity->num_core_siblings > 0) { in find_hw_thread_mask()
1042 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_get_proc_affinity() local
1043 struct cpu_mask_set *set = &affinity->proc; in hfi1_get_proc_affinity()
1046 * check whether process/context affinity has already in hfi1_get_proc_affinity()
1050 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU %*pbl", in hfi1_get_proc_affinity()
1061 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU set(s) %*pbl", in hfi1_get_proc_affinity()
1068 * The process does not have a preset CPU affinity so find one to in hfi1_get_proc_affinity()
1101 mutex_lock(&affinity->lock); in hfi1_get_proc_affinity()
1131 if (affinity->num_core_siblings > 0) { in hfi1_get_proc_affinity()
1132 for (i = 0; i < affinity->num_core_siblings; i++) { in hfi1_get_proc_affinity()
1133 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
1207 mutex_unlock(&affinity->lock); in hfi1_get_proc_affinity()
1223 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_put_proc_affinity() local
1224 struct cpu_mask_set *set = &affinity->proc; in hfi1_put_proc_affinity()
1229 mutex_lock(&affinity->lock); in hfi1_put_proc_affinity()
1232 mutex_unlock(&affinity->lock); in hfi1_put_proc_affinity()