aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpuset.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r--include/linux/cpuset.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
index ea44d2e768a0..31adfde1c95f 100644
--- a/include/linux/cpuset.h
+++ b/include/linux/cpuset.h
@@ -11,6 +11,7 @@
11#include <linux/sched.h> 11#include <linux/sched.h>
12#include <linux/cpumask.h> 12#include <linux/cpumask.h>
13#include <linux/nodemask.h> 13#include <linux/nodemask.h>
14#include <linux/cgroup.h>
14 15
15#ifdef CONFIG_CPUSETS 16#ifdef CONFIG_CPUSETS
16 17
@@ -19,8 +20,6 @@ extern int number_of_cpusets; /* How many cpusets are defined in system? */
19extern int cpuset_init_early(void); 20extern int cpuset_init_early(void);
20extern int cpuset_init(void); 21extern int cpuset_init(void);
21extern void cpuset_init_smp(void); 22extern void cpuset_init_smp(void);
22extern void cpuset_fork(struct task_struct *p);
23extern void cpuset_exit(struct task_struct *p);
24extern cpumask_t cpuset_cpus_allowed(struct task_struct *p); 23extern cpumask_t cpuset_cpus_allowed(struct task_struct *p);
25extern nodemask_t cpuset_mems_allowed(struct task_struct *p); 24extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
26#define cpuset_current_mems_allowed (current->mems_allowed) 25#define cpuset_current_mems_allowed (current->mems_allowed)
@@ -76,13 +75,13 @@ static inline int cpuset_do_slab_mem_spread(void)
76 75
77extern void cpuset_track_online_nodes(void); 76extern void cpuset_track_online_nodes(void);
78 77
78extern int current_cpuset_is_being_rebound(void);
79
79#else /* !CONFIG_CPUSETS */ 80#else /* !CONFIG_CPUSETS */
80 81
81static inline int cpuset_init_early(void) { return 0; } 82static inline int cpuset_init_early(void) { return 0; }
82static inline int cpuset_init(void) { return 0; } 83static inline int cpuset_init(void) { return 0; }
83static inline void cpuset_init_smp(void) {} 84static inline void cpuset_init_smp(void) {}
84static inline void cpuset_fork(struct task_struct *p) {}
85static inline void cpuset_exit(struct task_struct *p) {}
86 85
87static inline cpumask_t cpuset_cpus_allowed(struct task_struct *p) 86static inline cpumask_t cpuset_cpus_allowed(struct task_struct *p)
88{ 87{
@@ -148,6 +147,11 @@ static inline int cpuset_do_slab_mem_spread(void)
148 147
149static inline void cpuset_track_online_nodes(void) {} 148static inline void cpuset_track_online_nodes(void) {}
150 149
150static inline int current_cpuset_is_being_rebound(void)
151{
152 return 0;
153}
154
151#endif /* !CONFIG_CPUSETS */ 155#endif /* !CONFIG_CPUSETS */
152 156
153#endif /* _LINUX_CPUSET_H */ 157#endif /* _LINUX_CPUSET_H */