Lines Matching full:affinity

54 #include "affinity.h"
187 * The real cpu mask is part of the affinity struct but it has to be in node_affinity_init()
428 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_destroy()
478 hfi1_cdbg(AFFINITY, in _dev_comp_vect_mappings_create()
554 … "Number of kernel receive queues is too large for completion vector affinity to be effective\n"); in _dev_comp_vect_cpu_mask_init()
583 hfi1_cdbg(AFFINITY, in _dev_comp_vect_cpu_mask_init()
584 "[%s] Completion vector affinity CPU set(s) %*pbl", in _dev_comp_vect_cpu_mask_init()
623 * Interrupt affinity.
659 * If this is the first time this NUMA node's affinity is used, in hfi1_dev_affinity_init()
660 * create an entry in the global affinity structure and initialize it. in hfi1_dev_affinity_init()
666 "Unable to allocate global affinity node\n"); in hfi1_dev_affinity_init()
788 * Function updates the irq affinity hint for msix after it has been changed
855 * This is required by affinity notifier. We don't have anything to in hfi1_irq_notifier_release()
869 pr_err("Failed to register sdma irq affinity notifier for irq %d\n", in hfi1_setup_sdma_notifier()
878 pr_err("Failed to cleanup sdma irq affinity notifier for irq %d\n", in hfi1_cleanup_sdma_notifier()
883 * Function sets the irq affinity for msix.
1017 struct hfi1_affinity_node_list *affinity) in find_hw_thread_mask() argument
1021 affinity->num_core_siblings / in find_hw_thread_mask()
1024 cpumask_copy(hw_thread_mask, &affinity->proc.mask); in find_hw_thread_mask()
1025 if (affinity->num_core_siblings > 0) { in find_hw_thread_mask()
1054 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_get_proc_affinity() local
1055 struct cpu_mask_set *set = &affinity->proc; in hfi1_get_proc_affinity()
1058 * check whether process/context affinity has already in hfi1_get_proc_affinity()
1062 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU %*pbl", in hfi1_get_proc_affinity()
1073 hfi1_cdbg(PROC, "PID %u %s affinity set to CPU set(s) %*pbl", in hfi1_get_proc_affinity()
1080 * The process does not have a preset CPU affinity so find one to in hfi1_get_proc_affinity()
1113 mutex_lock(&affinity->lock); in hfi1_get_proc_affinity()
1143 if (affinity->num_core_siblings > 0) { in hfi1_get_proc_affinity()
1144 for (i = 0; i < affinity->num_core_siblings; i++) { in hfi1_get_proc_affinity()
1145 find_hw_thread_mask(i, hw_thread_mask, affinity); in hfi1_get_proc_affinity()
1219 mutex_unlock(&affinity->lock); in hfi1_get_proc_affinity()
1235 struct hfi1_affinity_node_list *affinity = &node_affinity; in hfi1_put_proc_affinity() local
1236 struct cpu_mask_set *set = &affinity->proc; in hfi1_put_proc_affinity()
1241 mutex_lock(&affinity->lock); in hfi1_put_proc_affinity()
1244 mutex_unlock(&affinity->lock); in hfi1_put_proc_affinity()