diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 90c6074a36ca..2e0d79678deb 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -90,12 +90,12 @@ static inline void cpuset_init_smp(void) {} | |||
90 | static inline void cpuset_cpus_allowed(struct task_struct *p, | 90 | static inline void cpuset_cpus_allowed(struct task_struct *p, |
91 | struct cpumask *mask) | 91 | struct cpumask *mask) |
92 | { | 92 | { |
93 | *mask = cpu_possible_map; | 93 | cpumask_copy(mask, cpu_possible_mask); |
94 | } | 94 | } |
95 | static inline void cpuset_cpus_allowed_locked(struct task_struct *p, | 95 | static inline void cpuset_cpus_allowed_locked(struct task_struct *p, |
96 | struct cpumask *mask) | 96 | struct cpumask *mask) |
97 | { | 97 | { |
98 | *mask = cpu_possible_map; | 98 | cpumask_copy(mask, cpu_possible_mask); |
99 | } | 99 | } |
100 | 100 | ||
101 | static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) | 101 | static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) |