process-util: add new helper cpus_in_affinity_mask()
Let's add a new helper for determining how many CPUs are configured for us
This commit is contained in:
@@ -193,3 +193,5 @@ assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX)
|
||||
(pid) = 0; \
|
||||
_pid_; \
|
||||
})
|
||||
|
||||
int cpus_in_affinity_mask(void);
|
||||
|
||||
Reference in New Issue
Block a user