~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/mempolicy.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp,
200
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
205
extern void numa_default_policy(void);
203
206
extern void numa_policy_init(void);
204
207
extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new,
228
231
 
229
232
#ifdef CONFIG_TMPFS
230
233
extern int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context);
 
234
#endif
231
235
 
232
236
extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol,
233
237
                        int no_context);
234
 
#endif
235
238
 
236
239
/* Check if a vma is migratable */
237
240
static inline int vma_migratable(struct vm_area_struct *vma)
368
371
{
369
372
        return 1;       /* error */
370
373
}
 
374
#endif
371
375
 
372
376
static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol,
373
377
                                int no_context)
374
378
{
375
379
        return 0;
376
380
}
377
 
#endif
378
381
 
379
382
#endif /* CONFIG_NUMA */
380
383
#endif /* __KERNEL__ */