Lines Matching refs:cpu

83 	int cpu;  member
151 extern void resched_cpu(int cpu); // An alternative IPI vector.
156 unsigned int cpu; in scf_add_to_free_list() local
160 cpu = raw_smp_processor_id() % nthreads; in scf_add_to_free_list()
161 pool = &per_cpu(scf_free_pool, cpu); in scf_add_to_free_list()
165 static void scf_cleanup_free_list(unsigned int cpu) in scf_cleanup_free_list() argument
171 pool = &per_cpu(scf_free_pool, cpu); in scf_cleanup_free_list()
183 int cpu; in scf_torture_stats_print() local
189 for_each_possible_cpu(cpu) in scf_torture_stats_print()
190 invoked_count += data_race(per_cpu(scf_invoked_count, cpu)); in scf_torture_stats_print()
347 uintptr_t cpu; in scftorture_invoke_one() local
372 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
374 resched_cpu(cpu); in scftorture_invoke_one()
379 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
385 scfcp->scfc_cpu = cpu; in scftorture_invoke_one()
389 ret = smp_call_function_single(cpu, scf_handler_1, (void *)scfcp, scfsp->scfs_wait); in scftorture_invoke_one()
402 cpu = torture_random(trsp) % nr_cpu_ids; in scftorture_invoke_one()
404 scfcp->scfc_cpu = cpu; in scftorture_invoke_one()
410 ret = smp_call_function_single(cpu, scf_handler_1, (void *)scfcp, 0); in scftorture_invoke_one()
478 int cpu; in scftorture_invoker() local
484 VERBOSE_SCFTORTOUT("scftorture_invoker %d: task started", scfp->cpu); in scftorture_invoker()
485 cpu = scfp->cpu % nr_cpu_ids; in scftorture_invoker()
486 WARN_ON_ONCE(set_cpus_allowed_ptr(current, cpumask_of(cpu))); in scftorture_invoker()
491 …VERBOSE_SCFTORTOUT("scftorture_invoker %d: Waiting for all SCF torturers from cpu %d", scfp->cpu, … in scftorture_invoker()
495 WARN_ONCE(curcpu != cpu, in scftorture_invoker()
497 __func__, scfp->cpu, curcpu, nr_cpu_ids); in scftorture_invoker()
502 VERBOSE_SCFTORTOUT("scftorture_invoker %d ended before starting", scfp->cpu); in scftorture_invoker()
508 VERBOSE_SCFTORTOUT("scftorture_invoker %d started", scfp->cpu); in scftorture_invoker()
511 scf_cleanup_free_list(cpu); in scftorture_invoker()
514 while (cpu_is_offline(cpu) && !torture_must_stop()) { in scftorture_invoker()
519 set_cpus_allowed_ptr(current, cpumask_of(cpu)); in scftorture_invoker()
526 VERBOSE_SCFTORTOUT("scftorture_invoker %d ended", scfp->cpu); in scftorture_invoker()
675 scf_stats_p[i].cpu = i; in scf_torture_init()