diff options
author | David Rientjes <rientjes@google.com> | 2010-08-10 00:18:56 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-10 03:44:57 (GMT) |
commit | 8e4228e1edb922afa83366803a1e5b3fa8e987c2 (patch) | |
tree | e741de337b409a430e0f34647e059dd35a84f72c /include | |
parent | e365893236ca78fa1fe2482ccbdc30e9abde6027 (diff) | |
download | linux-fsl-qoriq-8e4228e1edb922afa83366803a1e5b3fa8e987c2.tar.xz |
oom: move sysctl declarations to oom.h
The three oom killer sysctl variables (sysctl_oom_dump_tasks,
sysctl_oom_kill_allocating_task, and sysctl_panic_on_oom) are better
declared in include/linux/oom.h rather than kernel/sysctl.c.
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index 3ae6d94..1a8e407 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -44,5 +44,10 @@ static inline void oom_killer_enable(void) { oom_killer_disabled = false; } + +/* sysctls */ +extern int sysctl_oom_dump_tasks; +extern int sysctl_oom_kill_allocating_task; +extern int sysctl_panic_on_oom; #endif /* __KERNEL__*/ #endif /* _INCLUDE_LINUX_OOM_H */ |