aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-09-24 17:47:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-24 20:11:24 -0400
commitc44972f1782124f945ec8bea8a78f30f1a3538bd (patch)
treef804afc972b794100547383b5ca8e1936a91c3aa /fs
parentb9b9df62e7fd6b5f099c24bc867100ab86e1da5a (diff)
procfs: disable per-task stack usage on NOMMU
It needs walk_page_range(). Reported-by: Michal Simek <monstr@monstr.eu> Tested-by: Michal Simek <monstr@monstr.eu> Cc: Stefani Seibold <stefani@seibold.net> Cc: David Howells <dhowells@redhat.com> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Greg Ungerer <gerg@snapgear.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/array.c7
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,
322 p->nivcsw); 322 p->nivcsw);
323} 323}
324 324
325#ifdef CONFIG_MMU
326
325struct stack_stats { 327struct stack_stats {
326 struct vm_area_struct *vma; 328 struct vm_area_struct *vma;
327 unsigned long startpage; 329 unsigned long startpage;
@@ -402,6 +404,11 @@ static inline void task_show_stack_usage(struct seq_file *m,
402 mmput(mm); 404 mmput(mm);
403 } 405 }
404} 406}
407#else
408static void task_show_stack_usage(struct seq_file *m, struct task_struct *task)
409{
410}
411#endif /* CONFIG_MMU */
405 412
406int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, 413int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
407 struct pid *pid, struct task_struct *task) 414 struct pid *pid, struct task_struct *task)