mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
cef1d3523d
commit
74bcbf4054
2 changed files with 6 additions and 3 deletions
|
@ -427,9 +427,6 @@ static const struct file_operations proc_lstats_operations = {
|
|||
|
||||
#endif
|
||||
|
||||
/* The badness from the OOM killer */
|
||||
unsigned long badness(struct task_struct *p, struct mem_cgroup *mem,
|
||||
nodemask_t *nodemask, unsigned long uptime);
|
||||
static int proc_oom_score(struct task_struct *task, char *buffer)
|
||||
{
|
||||
unsigned long points = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue