Lines Matching +full:- +full:affinity
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* cpufreq-bench CPUFreq microbenchmark
43 * @retval -1 when failed
54 return -1; in set_cpufreq_governor()
60 return -1; in set_cpufreq_governor()
67 * sets cpu affinity for the process
69 * @param cpu cpu# to which the affinity should be set
72 * @retval -1 when setting the affinity failed
82 dprintf("set affinity to cpu #%u\n", cpu); in set_cpu_affinity()
86 fprintf(stderr, "warning: unable to set cpu affinity\n"); in set_cpu_affinity()
87 return -1; in set_cpu_affinity()
99 * @retval -1 when setting the priority failed
113 return -1; in set_process_priority()
132 for (round = 0; round < config->rounds; round++) { in prepare_user()
133 sleep_time += 2 * config->cycles * in prepare_user()
134 (config->sleep + config->sleep_step * round); in prepare_user()
135 load_time += 2 * config->cycles * in prepare_user()
136 (config->load + config->load_step * round) + in prepare_user()
137 (config->load + config->load_step * round * 4); in prepare_user()
140 if (config->verbose || config->output != stdout) in prepare_user()
146 * sets up the cpu affinity and scheduler priority
154 if (config->verbose) in prepare_system()
155 printf("set cpu affinity to cpu #%u\n", config->cpu); in prepare_system()
157 set_cpu_affinity(config->cpu); in prepare_system()
159 switch (config->prio) { in prepare_system()
161 if (config->verbose) in prepare_system()
167 if (config->verbose) in prepare_system()
173 if (config->verbose) in prepare_system()