File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1858,7 +1858,17 @@ extern int task_can_attach(struct task_struct *p);
1858
1858
extern int dl_bw_alloc(int cpu, u64 dl_bw);
1859
1859
extern void dl_bw_free(int cpu, u64 dl_bw);
1860
1860
#ifdef CONFIG_SMP
1861
+
1862
+ /* do_set_cpus_allowed() - consider using set_cpus_allowed_ptr() instead */
1861
1863
extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
1864
+
1865
+ /**
1866
+ * set_cpus_allowed_ptr - set CPU affinity mask of a task
1867
+ * @p: the task
1868
+ * @new_mask: CPU affinity mask
1869
+ *
1870
+ * Return: zero if successful, or a negative error code
1871
+ */
1862
1872
extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
1863
1873
extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node);
1864
1874
extern void release_user_cpus_ptr(struct task_struct *p);
You can’t perform that action at this time.
0 commit comments