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.h11
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);
26int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl); 26int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl);
27extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask); 27extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask);
28extern int cpuset_excl_nodes_overlap(const struct task_struct *p); 28extern 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)
35extern int cpuset_memory_pressure_enabled;
36extern void __cpuset_memory_pressure_bump(void);
37
29extern struct file_operations proc_cpuset_operations; 38extern struct file_operations proc_cpuset_operations;
30extern char *cpuset_task_status_allowed(struct task_struct *task, char *buffer); 39extern 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
72static inline void cpuset_memory_pressure_bump(void) {}
73
63static inline char *cpuset_task_status_allowed(struct task_struct *task, 74static inline char *cpuset_task_status_allowed(struct task_struct *task,
64 char *buffer) 75 char *buffer)
65{ 76{