LMK governor post function reordering foreground app candidates
requires oom level, so pass oom level to this post function.
Change-Id: I77b24eb298506698fdef73d8136990734eb0ef24
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
unsigned long totalram_kb);
int (*get_kill_candidates_post)(GArray *candidates);
int (*get_kill_candidates_post_with_wss)(GArray *candidates);
- int (*get_kill_candidates_post_with_foreground)(GArray *candidates);
+ int (*get_kill_candidates_post_with_foreground)(GArray *candidates,
+ enum syscommon_resourced_memory_lmk_oom_level oom_level);
} syscommon_plugin_backend_resourced_memory_lmk_funcs;
#ifdef __cplusplus
* otherwise a negative error value
*/
int syscommon_plugin_resourced_memory_lmk_get_kill_candidates_post_with_foreground(
- GArray *candidates);
+ GArray *candidates,
+ enum syscommon_resourced_memory_lmk_oom_level oom_level);
#ifdef __cplusplus
}
EXPORT
int syscommon_plugin_resourced_memory_lmk_get_kill_candidates_post_with_foreground(
- GArray *candidates)
+ GArray *candidates,
+ enum syscommon_resourced_memory_lmk_oom_level oom_level)
{
int ret = 0;
return -ENOTSUP;
}
- return funcs->get_kill_candidates_post_with_foreground(candidates);
+ return funcs->get_kill_candidates_post_with_foreground(candidates, oom_level);
}