chiark / gitweb /
Add support for oom_score_adj
authorLuca Tettamanti <kronos.it@gmail.com>
Mon, 23 Aug 2010 12:35:37 +0000 (14:35 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 25 Aug 2010 14:50:30 +0000 (16:50 +0200)
commitc61eea9459045c2c9032a0c98234985a371fac58
tree80651f02b25fe5cd3e13e995ff09ccf96e99a4c2
parent13f90be7a33353fdbcd4a389630a05c608bdf2a4
Add support for oom_score_adj

/proc/<pid>/oom_adj has been deprecated (kernel v2.6.36) due to the
rework of the badness heuristic; oom_score_adj is the replacement.
Keep a fallback to the old interface for compatibility with older
kernels.

See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a63d83f427fbce97a6cea0db2e64b0eb8435cd10

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
udev/udevd.c