Lines Matching refs:old_affinity
407 * @old_affinity: When not NULL, set to old CPU affinity
411 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity)
415 if (old_affinity) {
416 CPU_ZERO(old_affinity);
417 if (sched_getaffinity(bm_pid, sizeof(*old_affinity),
418 old_affinity)) {
439 * @old_affinity: The old CPU affinity to restore
443 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity)
445 if (sched_setaffinity(bm_pid, sizeof(*old_affinity), old_affinity)) {