From: SangYoun Kwak Date: Thu, 27 Jul 2023 06:31:23 +0000 (+0900) Subject: lowmem-monitor: Disable PSI monitoring method X-Git-Tag: accepted/tizen/unified/20230803.174805~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b8a74a2474cb4b6fd580bba7e81ba4e7a55f3ed;p=platform%2Fcore%2Fsystem%2Fresourced.git lowmem-monitor: Disable PSI monitoring method The PSI monitoring feature of lowmem-monitor was disabled since this feature is under development. Change-Id: I0459020a64ace157b0d421a6fd1fb797b0fed263 Signed-off-by: SangYoun Kwak --- diff --git a/src/resource-limiter/memory/lowmem-monitor-psi.c b/src/resource-limiter/memory/lowmem-monitor-psi.c index b15e628..434840d 100644 --- a/src/resource-limiter/memory/lowmem-monitor-psi.c +++ b/src/resource-limiter/memory/lowmem-monitor-psi.c @@ -357,6 +357,12 @@ static void unregister_psi_events(void) static int lowmem_monitor_psi_initialize(void *data) { + /** + * FIXME: Disable PSI monitoring feature temporarily. + * Enable it when the PSI monitoring is ready to apply. + */ + return RESOURCED_ERROR_NONE; + if (register_psi_events() != RESOURCED_ERROR_NONE) { _E("Failed to register psi fds to epoll fd"); return RESOURCED_ERROR_FAIL; @@ -373,6 +379,12 @@ static int lowmem_monitor_psi_initialize(void *data) static int lowmem_monitor_psi_finalize(void *data) { + /** + * FIXME: Disable PSI monitoring feature temporarily. + * Enable it when the PSI monitoring is ready to apply. + */ + return RESOURCED_ERROR_NONE; + destroy_psi_monitor_thread(); unregister_psi_events();