diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cpuset.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index e9eaec522655..e0ffaf061ab7 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -22,7 +22,7 @@ extern int cpuset_init(void); | |||
22 | extern void cpuset_init_smp(void); | 22 | extern void cpuset_init_smp(void); |
23 | extern void cpuset_update_active_cpus(void); | 23 | extern void cpuset_update_active_cpus(void); |
24 | extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); | 24 | extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); |
25 | extern int cpuset_cpus_allowed_fallback(struct task_struct *p); | 25 | extern void cpuset_cpus_allowed_fallback(struct task_struct *p); |
26 | extern nodemask_t cpuset_mems_allowed(struct task_struct *p); | 26 | extern nodemask_t cpuset_mems_allowed(struct task_struct *p); |
27 | #define cpuset_current_mems_allowed (current->mems_allowed) | 27 | #define cpuset_current_mems_allowed (current->mems_allowed) |
28 | void cpuset_init_current_mems_allowed(void); | 28 | void cpuset_init_current_mems_allowed(void); |
@@ -144,10 +144,8 @@ static inline void cpuset_cpus_allowed(struct task_struct *p, | |||
144 | cpumask_copy(mask, cpu_possible_mask); | 144 | cpumask_copy(mask, cpu_possible_mask); |
145 | } | 145 | } |
146 | 146 | ||
147 | static inline int cpuset_cpus_allowed_fallback(struct task_struct *p) | 147 | static inline void cpuset_cpus_allowed_fallback(struct task_struct *p) |
148 | { | 148 | { |
149 | do_set_cpus_allowed(p, cpu_possible_mask); | ||
150 | return cpumask_any(cpu_active_mask); | ||
151 | } | 149 | } |
152 | 150 | ||
153 | static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) | 151 | static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) |