diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-08-10 00:19:43 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 03:45:02 (GMT) |
commit | 74bcbf40546bb7500f2a7ba4ff3cc056a6bd004a (patch) | |
tree | 39411d83f448da818368043af9b52e9b405a2002 /include | |
parent | cef1d3523d33ebc35fc29e454b1f4bab953fabbf (diff) | |
download | linux-fsl-qoriq-74bcbf40546bb7500f2a7ba4ff3cc056a6bd004a.tar.xz |
oom: move badness() declaration into oom.h
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/oom.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index 9d7c34a..40e5e3a 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -14,6 +14,8 @@ struct zonelist; struct notifier_block; +struct mem_cgroup; +struct task_struct; /* * Types of limitations to the nodes from which allocations may occur @@ -45,6 +47,10 @@ static inline void oom_killer_enable(void) oom_killer_disabled = false; } +/* The badness from the OOM killer */ +extern unsigned long badness(struct task_struct *p, struct mem_cgroup *mem, + const nodemask_t *nodemask, unsigned long uptime); + /* sysctls */ extern int sysctl_oom_dump_tasks; extern int sysctl_oom_kill_allocating_task; |