mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the build after 47a57144
This commit is contained in:
parent
a6f85b12bb
commit
89737eb829
1 changed files with 6 additions and 1 deletions
|
|
@ -2239,6 +2239,11 @@ linux_sched_getparam(struct thread *td,
|
|||
return (error);
|
||||
}
|
||||
|
||||
static const struct cpuset_copy_cb copy_set = {
|
||||
.copyin = copyin,
|
||||
.copyout = copyout
|
||||
};
|
||||
|
||||
/*
|
||||
* Get affinity of a process.
|
||||
*/
|
||||
|
|
@ -2257,7 +2262,7 @@ linux_sched_getaffinity(struct thread *td,
|
|||
PROC_UNLOCK(tdt->td_proc);
|
||||
|
||||
error = kern_cpuset_getaffinity(td, CPU_LEVEL_WHICH, CPU_WHICH_TID,
|
||||
tid, args->len, (cpuset_t *)args->user_mask_ptr);
|
||||
tid, args->len, (cpuset_t *)args->user_mask_ptr, ©_set);
|
||||
if (error == ERANGE)
|
||||
error = EINVAL;
|
||||
if (error == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue