Lines Matching refs:nreaders
82 torture_param(int, nreaders, -1, "Number of readers, -1 for 75% of CPUs.");
613 for (i = 0; i < nreaders; i++) { in reset_readers()
669 set_cpus_allowed_ptr(current, cpumask_of(nreaders % nr_cpu_ids)); in main_func()
684 while (atomic_read(&n_init) < nreaders + 1) in main_func()
693 atomic_set(&nreaders_exp, nreaders); in main_func()
694 atomic_set(&n_started, nreaders); in main_func()
695 atomic_set(&n_warmedup, nreaders); in main_func()
696 atomic_set(&n_cooleddown, nreaders); in main_func()
700 for (r = 0; r < nreaders; r++) { in main_func()
706 nreaders); in main_func()
716 result_avg[exp] = div_u64(1000 * process_durations(nreaders), nreaders * loops); in main_func()
761 verbose, shutdown, holdoff, loops, nreaders, nruns, readdelay); in ref_scale_print_module_parms()
778 for (i = 0; i < nreaders; i++) in ref_scale_cleanup()
851 if (nreaders < 0) in ref_scale_init()
852 nreaders = (num_online_cpus() >> 1) + (num_online_cpus() >> 2); in ref_scale_init()
855 if (WARN_ONCE(nreaders <= 0, "%s: nreaders = %d, adjusted to 1\n", __func__, nreaders)) in ref_scale_init()
856 nreaders = 1; in ref_scale_init()
859 reader_tasks = kcalloc(nreaders, sizeof(reader_tasks[0]), in ref_scale_init()
867 VERBOSE_SCALEOUT("Starting %d reader threads", nreaders); in ref_scale_init()
869 for (i = 0; i < nreaders; i++) { in ref_scale_init()