Skip to content

Commit

Permalink
procfs: disable per-task stack usage on NOMMU
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
akpm00 authored and torvalds committed Sep 25, 2009
1 parent b9b9df6 commit c44972f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions fs/proc/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
mmu-y := nommu.o
mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
vmalloc.o
vmalloc.o pagewalk.o

obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \
maccess.o page_alloc.o page-writeback.o \
readahead.o swap.o truncate.o vmscan.o shmem.o \
prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \
page_isolation.o mm_init.o mmu_context.o \
pagewalk.o $(mmu-y)
$(mmu-y)
obj-y += init-mm.o

obj-$(CONFIG_BOUNCE) += bounce.o
Expand Down

0 comments on commit c44972f

Please sign in to comment.