diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 1b357997cac5..85a868ccb493 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -93,7 +93,7 @@ extern int current_cpuset_is_being_rebound(void); | |||
93 | 93 | ||
94 | extern void rebuild_sched_domains(void); | 94 | extern void rebuild_sched_domains(void); |
95 | 95 | ||
96 | extern void cpuset_print_task_mems_allowed(struct task_struct *p); | 96 | extern void cpuset_print_current_mems_allowed(void); |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * read_mems_allowed_begin is required when making decisions involving | 99 | * read_mems_allowed_begin is required when making decisions involving |
@@ -104,6 +104,9 @@ extern void cpuset_print_task_mems_allowed(struct task_struct *p); | |||
104 | */ | 104 | */ |
105 | static inline unsigned int read_mems_allowed_begin(void) | 105 | static inline unsigned int read_mems_allowed_begin(void) |
106 | { | 106 | { |
107 | if (!cpusets_enabled()) | ||
108 | return 0; | ||
109 | |||
107 | return read_seqcount_begin(¤t->mems_allowed_seq); | 110 | return read_seqcount_begin(¤t->mems_allowed_seq); |
108 | } | 111 | } |
109 | 112 | ||
@@ -115,6 +118,9 @@ static inline unsigned int read_mems_allowed_begin(void) | |||
115 | */ | 118 | */ |
116 | static inline bool read_mems_allowed_retry(unsigned int seq) | 119 | static inline bool read_mems_allowed_retry(unsigned int seq) |
117 | { | 120 | { |
121 | if (!cpusets_enabled()) | ||
122 | return false; | ||
123 | |||
118 | return read_seqcount_retry(¤t->mems_allowed_seq, seq); | 124 | return read_seqcount_retry(¤t->mems_allowed_seq, seq); |
119 | } | 125 | } |
120 | 126 | ||
@@ -219,7 +225,7 @@ static inline void rebuild_sched_domains(void) | |||
219 | partition_sched_domains(1, NULL, NULL); | 225 | partition_sched_domains(1, NULL, NULL); |
220 | } | 226 | } |
221 | 227 | ||
222 | static inline void cpuset_print_task_mems_allowed(struct task_struct *p) | 228 | static inline void cpuset_print_current_mems_allowed(void) |
223 | { | 229 | { |
224 | } | 230 | } |
225 | 231 | ||