diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 1feebf16ab08..37d2dd7ca3e9 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -18,7 +18,8 @@ extern int cpuset_init(void); | |||
18 | extern void cpuset_init_smp(void); | 18 | extern void cpuset_init_smp(void); |
19 | extern void cpuset_fork(struct task_struct *p); | 19 | extern void cpuset_fork(struct task_struct *p); |
20 | extern void cpuset_exit(struct task_struct *p); | 20 | extern void cpuset_exit(struct task_struct *p); |
21 | extern cpumask_t cpuset_cpus_allowed(const struct task_struct *p); | 21 | extern cpumask_t cpuset_cpus_allowed(struct task_struct *p); |
22 | extern nodemask_t cpuset_mems_allowed(struct task_struct *p); | ||
22 | void cpuset_init_current_mems_allowed(void); | 23 | void cpuset_init_current_mems_allowed(void); |
23 | void cpuset_update_task_memory_state(void); | 24 | void cpuset_update_task_memory_state(void); |
24 | #define cpuset_nodes_subset_current_mems_allowed(nodes) \ | 25 | #define cpuset_nodes_subset_current_mems_allowed(nodes) \ |
@@ -50,6 +51,11 @@ static inline cpumask_t cpuset_cpus_allowed(struct task_struct *p) | |||
50 | return cpu_possible_map; | 51 | return cpu_possible_map; |
51 | } | 52 | } |
52 | 53 | ||
54 | static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) | ||
55 | { | ||
56 | return node_possible_map; | ||
57 | } | ||
58 | |||
53 | static inline void cpuset_init_current_mems_allowed(void) {} | 59 | static inline void cpuset_init_current_mems_allowed(void) {} |
54 | static inline void cpuset_update_task_memory_state(void) {} | 60 | static inline void cpuset_update_task_memory_state(void) {} |
55 | #define cpuset_nodes_subset_current_mems_allowed(nodes) (1) | 61 | #define cpuset_nodes_subset_current_mems_allowed(nodes) (1) |