Lines Matching refs:nr_cpu_ids
3706 return nr_cpu_ids; in find_new_ilb()
3711 return nr_cpu_ids; in find_new_ilb()
3728 if (ilb_cpu >= nr_cpu_ids) { in nohz_balancer_kick()
3730 if (ilb_cpu >= nr_cpu_ids) in nohz_balancer_kick()
3771 nr_cpu_ids) != cpu) in select_nohz_load_balancer()
3780 atomic_cmpxchg(&nohz.first_pick_cpu, cpu, nr_cpu_ids); in select_nohz_load_balancer()
3782 atomic_cmpxchg(&nohz.second_pick_cpu, cpu, nr_cpu_ids); in select_nohz_load_balancer()
3784 if (atomic_read(&nohz.load_balancer) >= nr_cpu_ids) { in select_nohz_load_balancer()
3788 if (atomic_cmpxchg(&nohz.load_balancer, nr_cpu_ids, in select_nohz_load_balancer()
3789 cpu) != nr_cpu_ids) in select_nohz_load_balancer()
3797 if (new_ilb < nr_cpu_ids && new_ilb != cpu) { in select_nohz_load_balancer()
3798 atomic_set(&nohz.load_balancer, nr_cpu_ids); in select_nohz_load_balancer()
3812 nr_cpu_ids) != cpu) in select_nohz_load_balancer()
3976 if (first_pick_cpu < nr_cpu_ids && first_pick_cpu != cpu && in nohz_kick_needed()
3977 second_pick_cpu < nr_cpu_ids && second_pick_cpu != cpu) in nohz_kick_needed()
3980 ret = atomic_cmpxchg(&nohz.first_pick_cpu, nr_cpu_ids, cpu); in nohz_kick_needed()
3981 if (ret == nr_cpu_ids || ret == cpu) { in nohz_kick_needed()
3982 atomic_cmpxchg(&nohz.second_pick_cpu, cpu, nr_cpu_ids); in nohz_kick_needed()
3986 ret = atomic_cmpxchg(&nohz.second_pick_cpu, nr_cpu_ids, cpu); in nohz_kick_needed()
3987 if (ret == nr_cpu_ids || ret == cpu) { in nohz_kick_needed()