Home
last modified time | relevance | path

Searched refs:available_cpus (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c171 cpu_set_t available_cpus; in main()
189 err = sched_getaffinity(0, sizeof(available_cpus), &available_cpus); in main()
194 if (!CPU_ISSET(cpu, &available_cpus)) in main()
206 if (!CPU_ISSET(cpu, &available_cpus)) in main()
168 cpu_set_t available_cpus; main() local
/linux/drivers/infiniband/hw/hfi1/
H A Daffinity.c323 cpumask_var_t available_cpus) in _dev_comp_vect_cpu_get() argument
335 if (!available_cpus) { in _dev_comp_vect_cpu_get()
342 cpumask_andnot(available_cpus, &set->mask, &set->used); in _dev_comp_vect_cpu_get()
345 cpumask_andnot(non_intr_cpus, available_cpus, in _dev_comp_vect_cpu_get()
352 cpu = cpumask_first(available_cpus); in _dev_comp_vect_cpu_get()
405 cpumask_var_t available_cpus; in _dev_comp_vect_mappings_create() local
412 if (!zalloc_cpumask_var(&available_cpus, GFP_KERNEL)) { in _dev_comp_vect_mappings_create()
429 available_cpus); in _dev_comp_vect_mappings_create()
441 free_cpumask_var(available_cpus); in _dev_comp_vect_mappings_create()
446 free_cpumask_var(available_cpus); in _dev_comp_vect_mappings_create()
H A Dnetdev_rx.c160 unsigned int available_cpus; in hfi1_num_netdev_contexts() local
178 available_cpus = cpumask_weight(node_cpu_mask); in hfi1_num_netdev_contexts()
182 return min3(available_cpus, available_contexts, in hfi1_num_netdev_contexts()
/linux/arch/arm/common/
H A DbL_switcher.c423 cpumask_t available_cpus; in bL_switcher_halve_cpus() local
450 cpumask_copy(&available_cpus, cpu_online_mask); in bL_switcher_halve_cpus()
452 for_each_cpu(i, &available_cpus) { in bL_switcher_halve_cpus()
459 cpumask_clear_cpu(i, &available_cpus); in bL_switcher_halve_cpus()
460 for_each_cpu(j, &available_cpus) { in bL_switcher_halve_cpus()
473 cpumask_clear_cpu(match, &available_cpus); in bL_switcher_halve_cpus()