diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/mempolicy.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/linux/mempolicy.h')
-rw-r--r-- | include/linux/mempolicy.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 31ac26ca4acf..7978eec1b7d9 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -199,6 +199,9 @@ void mpol_free_shared_policy(struct shared_policy *p); | |||
199 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, | 199 | struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, |
200 | unsigned long idx); | 200 | unsigned long idx); |
201 | 201 | ||
202 | struct mempolicy *get_vma_policy(struct task_struct *tsk, | ||
203 | struct vm_area_struct *vma, unsigned long addr); | ||
204 | |||
202 | extern void numa_default_policy(void); | 205 | extern void numa_default_policy(void); |
203 | extern void numa_policy_init(void); | 206 | extern void numa_policy_init(void); |
204 | extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new, | 207 | extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new, |
@@ -228,10 +231,10 @@ int do_migrate_pages(struct mm_struct *mm, | |||
228 | 231 | ||
229 | #ifdef CONFIG_TMPFS | 232 | #ifdef CONFIG_TMPFS |
230 | extern int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context); | 233 | extern int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context); |
234 | #endif | ||
231 | 235 | ||
232 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, | 236 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, |
233 | int no_context); | 237 | int no_context); |
234 | #endif | ||
235 | 238 | ||
236 | /* Check if a vma is migratable */ | 239 | /* Check if a vma is migratable */ |
237 | static inline int vma_migratable(struct vm_area_struct *vma) | 240 | static inline int vma_migratable(struct vm_area_struct *vma) |
@@ -368,13 +371,13 @@ static inline int mpol_parse_str(char *str, struct mempolicy **mpol, | |||
368 | { | 371 | { |
369 | return 1; /* error */ | 372 | return 1; /* error */ |
370 | } | 373 | } |
374 | #endif | ||
371 | 375 | ||
372 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, | 376 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, |
373 | int no_context) | 377 | int no_context) |
374 | { | 378 | { |
375 | return 0; | 379 | return 0; |
376 | } | 380 | } |
377 | #endif | ||
378 | 381 | ||
379 | #endif /* CONFIG_NUMA */ | 382 | #endif /* CONFIG_NUMA */ |
380 | #endif /* __KERNEL__ */ | 383 | #endif /* __KERNEL__ */ |