]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] OOM killer meets userspace headers
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 20 Oct 2006 06:28:32 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:38 +0000 (10:26 -0700)
commit8ac773b4f73afa6fd66695131103944b975d5d5c
tree7a3ea0d703cde009c5f2e1196d80f06cf5d00d54
parent887b95931b4072e60e3bf4253ff7bffe372bca46
[PATCH] OOM killer meets userspace headers

Despite mm.h is not being exported header, it does contain one thing
which is part of userspace ABI -- value disabling OOM killer for given
process. So,
a) create and export include/linux/oom.h
b) move OOM_DISABLE define there.
c) turn bounding values of /proc/$PID/oom_adj into defines and export
   them too.

Note: mass __KERNEL__ removal will be done later.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c
include/linux/Kbuild
include/linux/mm.h
include/linux/oom.h [new file with mode: 0644]
mm/oom_kill.c