diff options
| author | Andrew Morton <[email protected]> | 2009-09-24 21:47:43 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-25 00:11:24 +0000 |
| commit | c44972f1782124f945ec8bea8a78f30f1a3538bd (patch) | |
| tree | f804afc972b794100547383b5ca8e1936a91c3aa /fs/proc/array.c | |
| parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecr... (diff) | |
| download | kernel-c44972f1782124f945ec8bea8a78f30f1a3538bd.tar.gz kernel-c44972f1782124f945ec8bea8a78f30f1a3538bd.zip | |
procfs: disable per-task stack usage on NOMMU
It needs walk_page_range().
Reported-by: Michal Simek <[email protected]>
Tested-by: Michal Simek <[email protected]>
Cc: Stefani Seibold <[email protected]>
Cc: David Howells <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Greg Ungerer <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 0c6bc602e6c4..07f77a7945c3 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -322,6 +322,8 @@ static inline void task_context_switch_counts(struct seq_file *m, p->nivcsw); } +#ifdef CONFIG_MMU + struct stack_stats { struct vm_area_struct *vma; unsigned long startpage; @@ -402,6 +404,11 @@ static inline void task_show_stack_usage(struct seq_file *m, mmput(mm); } } +#else +static void task_show_stack_usage(struct seq_file *m, struct task_struct *task) +{ +} +#endif /* CONFIG_MMU */ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) |
