|
@@ -21,7 +21,8 @@ extern void cpuset_exit(struct task_struct *p);
|
|
extern cpumask_t cpuset_cpus_allowed(const struct task_struct *p);
|
|
extern cpumask_t cpuset_cpus_allowed(const struct task_struct *p);
|
|
void cpuset_init_current_mems_allowed(void);
|
|
void cpuset_init_current_mems_allowed(void);
|
|
void cpuset_update_current_mems_allowed(void);
|
|
void cpuset_update_current_mems_allowed(void);
|
|
-void cpuset_restrict_to_mems_allowed(unsigned long *nodes);
|
|
|
|
|
|
+#define cpuset_nodes_subset_current_mems_allowed(nodes) \
|
|
|
|
+ nodes_subset((nodes), current->mems_allowed)
|
|
int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl);
|
|
int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl);
|
|
extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask);
|
|
extern int cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask);
|
|
extern int cpuset_excl_nodes_overlap(const struct task_struct *p);
|
|
extern int cpuset_excl_nodes_overlap(const struct task_struct *p);
|
|
@@ -42,7 +43,7 @@ static inline cpumask_t cpuset_cpus_allowed(struct task_struct *p)
|
|
|
|
|
|
static inline void cpuset_init_current_mems_allowed(void) {}
|
|
static inline void cpuset_init_current_mems_allowed(void) {}
|
|
static inline void cpuset_update_current_mems_allowed(void) {}
|
|
static inline void cpuset_update_current_mems_allowed(void) {}
|
|
-static inline void cpuset_restrict_to_mems_allowed(unsigned long *nodes) {}
|
|
|
|
|
|
+#define cpuset_nodes_subset_current_mems_allowed(nodes) (1)
|
|
|
|
|
|
static inline int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
|
|
static inline int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
|
|
{
|
|
{
|