diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 8b21786490ee..736d73801cb6 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -26,6 +26,15 @@ void cpuset_update_current_mems_allowed(void); | |||
26 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); | 26 | int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); |
27 | extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask); | 27 | extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask); |
28 | extern int cpuset_excl_nodes_overlap(const struct task_struct *p); | 28 | extern int cpuset_excl_nodes_overlap(const struct task_struct *p); |
29 | |||
30 | #define cpuset_memory_pressure_bump() \ | ||
31 | do { \ | ||
32 | if (cpuset_memory_pressure_enabled) \ | ||
33 | __cpuset_memory_pressure_bump(); \ | ||
34 | } while (0) | ||
35 | extern int cpuset_memory_pressure_enabled; | ||
36 | extern void __cpuset_memory_pressure_bump(void); | ||
37 | |||
29 | extern struct file_operations proc_cpuset_operations; | 38 | extern struct file_operations proc_cpuset_operations; |
30 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); | 39 | extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); |
31 | 40 | ||
@@ -60,6 +69,8 @@ static inline int cpuset_excl_nodes_overlap(const struct task_struct *p) | |||
60 | return 1; | 69 | return 1; |
61 | } | 70 | } |
62 | 71 | ||
72 | static inline void cpuset_memory_pressure_bump(void) {} | ||
73 | |||
63 | static inline char *cpuset_task_status_allowed(struct task_struct *task, | 74 | static inline char *cpuset_task_status_allowed(struct task_struct *task, |
64 | char *buffer) | 75 | char *buffer) |
65 | { | 76 | { |