diff options
| author | Peter Zijlstra <[email protected]> | 2021-08-20 12:33:05 +0200 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2021-08-20 12:33:05 +0200 |
| commit | c94d89fafa49ba70fedbb01cb52dfbbdd7dc0986 (patch) | |
| tree | ca4af4efcc3ac38dcb26ccf99acf62f7d30ebcc3 /include/linux/cpuset.h | |
| parent | 7c60610d476766e128cc4284bb6349732cbd6606 (diff) | |
| parent | 234b8ab6476c5edd5262e2ff563de9498d60044a (diff) | |
Merge branch 'sched/core'
Diffstat (limited to 'include/linux/cpuset.h')
| -rw-r--r-- | include/linux/cpuset.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 04c20de66afc..d2b9c41c8edf 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h @@ -15,6 +15,7 @@ #include <linux/cpumask.h> #include <linux/nodemask.h> #include <linux/mm.h> +#include <linux/mmu_context.h> #include <linux/jump_label.h> #ifdef CONFIG_CPUSETS @@ -58,7 +59,7 @@ extern void cpuset_wait_for_hotplug(void); extern void cpuset_read_lock(void); extern void cpuset_read_unlock(void); extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); -extern void cpuset_cpus_allowed_fallback(struct task_struct *p); +extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); extern nodemask_t cpuset_mems_allowed(struct task_struct *p); #define cpuset_current_mems_allowed (current->mems_allowed) void cpuset_init_current_mems_allowed(void); @@ -184,11 +185,12 @@ static inline void cpuset_read_unlock(void) { } static inline void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask) { - cpumask_copy(mask, cpu_possible_mask); + cpumask_copy(mask, task_cpu_possible_mask(p)); } -static inline void cpuset_cpus_allowed_fallback(struct task_struct *p) +static inline bool cpuset_cpus_allowed_fallback(struct task_struct *p) { + return false; } static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) |