Lines Matching +full:- +full:affinity
1 // SPDX-License-Identifier: GPL-2.0
21 * CPU mask used to set process affinity for MT VPEs/TCs with FPUs
25 static int fpaff_threshold = -1;
31 * FPU affinity with the user's requested processor affinity.
38 * find_process_by_pid - find a process with a matching PID value.
57 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner()
58 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
64 * mipsmt_sys_sched_setaffinity - set the cpu affinity of a process
75 return -EINVAL; in mipsmt_sys_sched_setaffinity()
78 return -EFAULT; in mipsmt_sys_sched_setaffinity()
87 return -ESRCH; in mipsmt_sys_sched_setaffinity()
95 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
99 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
103 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
107 retval = -EPERM; in mipsmt_sys_sched_setaffinity()
115 /* Record new user-specified CPU set for future reference */ in mipsmt_sys_sched_setaffinity()
116 cpumask_copy(&p->thread.user_cpus_allowed, new_mask); in mipsmt_sys_sched_setaffinity()
156 * mipsmt_sys_sched_getaffinity - get the cpu affinity of a process
168 return -EINVAL; in mipsmt_sys_sched_getaffinity()
173 retval = -ESRCH; in mipsmt_sys_sched_getaffinity()
181 cpumask_or(&allowed, &p->thread.user_cpus_allowed, p->cpus_ptr); in mipsmt_sys_sched_getaffinity()
190 return -EFAULT; in mipsmt_sys_sched_getaffinity()
215 printk(KERN_DEBUG "FPU Affinity set after %ld emulations\n", in mt_fp_affinity_init()