Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MemoryMonitor: use /proc/*/oom_score_adj rather than /proc/*/oom_adj
On newer kernels /proc/*/oom_adj is deprecated and should not be used anymore. As Open webOS requires at least a linux 3.3 kernel this changes the use to the new /proc/*/oom_score_adj entry but still keeps backward compatiblity for older kernels which onles provides /proc/*/oom_adj. More information about the change are available on the following pages: - torvalds/linux@a63d83f#include/linux/oom.h - https://www.redhat.com/archives/lvm-devel/2011-July/msg00097.html Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
- Loading branch information
Showing
2 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters