Revert partial update among patch "Classify apps & optimize memory cgroup".
It changes the criterion for determining whether a process is app or not
based on it is managed by resourced as app rather than the oom score.
This approach is based on resourced (branch: tizen_6.0).
Change-Id: I3c9a4911b96c669f8abf8facf922112afbfd2a6b
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
* and pid has been already included in pai,
* skip to append.
*/
- if (oom_score_adj > OOMADJ_SU && oom_score_adj <= OOMADJ_APP_MAX)
+ if (find_app_info(pid))
continue;
appid = (char *)g_hash_table_lookup(g_lmk_kill_exception_pid_list, &pid);