diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 8e540d32c9fe..90c6074a36ca 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -20,8 +20,9 @@ extern int number_of_cpusets; /* How many cpusets are defined in system? */ | |||
20 | extern int cpuset_init_early(void); | 20 | extern int cpuset_init_early(void); |
21 | extern int cpuset_init(void); | 21 | extern int cpuset_init(void); |
22 | extern void cpuset_init_smp(void); | 22 | extern void cpuset_init_smp(void); |
23 | extern void cpuset_cpus_allowed(struct task_struct *p, cpumask_t *mask); | 23 | extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); |
24 | extern void cpuset_cpus_allowed_locked(struct task_struct *p, cpumask_t *mask); | 24 | extern void cpuset_cpus_allowed_locked(struct task_struct *p, |
25 | struct cpumask *mask); | ||
25 | extern nodemask_t cpuset_mems_allowed(struct task_struct *p); | 26 | extern nodemask_t cpuset_mems_allowed(struct task_struct *p); |
26 | #define cpuset_current_mems_allowed (current->mems_allowed) | 27 | #define cpuset_current_mems_allowed (current->mems_allowed) |
27 | void cpuset_init_current_mems_allowed(void); | 28 | void cpuset_init_current_mems_allowed(void); |
@@ -78,18 +79,21 @@ extern int current_cpuset_is_being_rebound(void); | |||
78 | 79 | ||
79 | extern void rebuild_sched_domains(void); | 80 | extern void rebuild_sched_domains(void); |
80 | 81 | ||
82 | extern void cpuset_print_task_mems_allowed(struct task_struct *p); | ||
83 | |||
81 | #else /* !CONFIG_CPUSETS */ | 84 | #else /* !CONFIG_CPUSETS */ |
82 | 85 | ||
83 | static inline int cpuset_init_early(void) { return 0; } | 86 | static inline int cpuset_init_early(void) { return 0; } |
84 | static inline int cpuset_init(void) { return 0; } | 87 | static inline int cpuset_init(void) { return 0; } |
85 | static inline void cpuset_init_smp(void) {} | 88 | static inline void cpuset_init_smp(void) {} |
86 | 89 | ||
87 | static inline void cpuset_cpus_allowed(struct task_struct *p, cpumask_t *mask) | 90 | static inline void cpuset_cpus_allowed(struct task_struct *p, |
91 | struct cpumask *mask) | ||
88 | { | 92 | { |
89 | *mask = cpu_possible_map; | 93 | *mask = cpu_possible_map; |
90 | } | 94 | } |
91 | static inline void cpuset_cpus_allowed_locked(struct task_struct *p, | 95 | static inline void cpuset_cpus_allowed_locked(struct task_struct *p, |
92 | cpumask_t *mask) | 96 | struct cpumask *mask) |
93 | { | 97 | { |
94 | *mask = cpu_possible_map; | 98 | *mask = cpu_possible_map; |
95 | } | 99 | } |
@@ -159,6 +163,10 @@ static inline void rebuild_sched_domains(void) | |||
159 | partition_sched_domains(1, NULL, NULL); | 163 | partition_sched_domains(1, NULL, NULL); |
160 | } | 164 | } |
161 | 165 | ||
166 | static inline void cpuset_print_task_mems_allowed(struct task_struct *p) | ||
167 | { | ||
168 | } | ||
169 | |||
162 | #endif /* !CONFIG_CPUSETS */ | 170 | #endif /* !CONFIG_CPUSETS */ |
163 | 171 | ||
164 | #endif /* _LINUX_CPUSET_H */ | 172 | #endif /* _LINUX_CPUSET_H */ |