From: Changgyu Choi Date: Mon, 25 Jul 2022 01:45:27 +0000 (+0900) Subject: Revert "Add cpu priority inheritance" X-Git-Tag: submit/tizen/20220725.024329~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6844133bfc3786f279dd7bdab165e723dd88f17;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Revert "Add cpu priority inheritance" This reverts commit b67f9e7e9a31a6b2ff4f2867d2c63edd9fda7209. Change-Id: I80317085c0a8b60ce463ab855313716f27d8709f Signed-off-by: Changgyu Choi --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 267df098..fb3d5cac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,5 @@ PKG_CHECK_MODULES(SECURITY_MANAGER_DEPS REQUIRED security-manager) PKG_CHECK_MODULES(TANCHOR_DEPS REQUIRED tanchor) PKG_CHECK_MODULES(TTRACE_DEPS REQUIRED ttrace) PKG_CHECK_MODULES(VCONF_DEPS REQUIRED vconf) -PKG_CHECK_MODULES(CAPI_SYSTEM_RESOURCE_DEPS REQUIRED capi-system-resource) ADD_SUBDIRECTORY(src) diff --git a/packaging/launchpad.spec b/packaging/launchpad.spec index 001dcc0d..aeb02dfb 100644 --- a/packaging/launchpad.spec +++ b/packaging/launchpad.spec @@ -33,7 +33,6 @@ BuildRequires: pkgconfig(iniparser) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libsmack) BuildRequires: pkgconfig(pkgmgr-installer) -BuildRequires: pkgconfig(capi-system-resource) Requires(post): /sbin/ldconfig Requires(post): /usr/bin/systemctl @@ -192,3 +191,4 @@ ln -sf ../launchpad-process-pool.service %{buildroot}%{_unitdir_user}/basic.targ %{_libdir}/*.so %{_libdir}/pkgconfig/liblaunchpad.pc %{_libdir}/pkgconfig/liblaunchpad-hydra.pc + diff --git a/src/launchpad-process-pool/CMakeLists.txt b/src/launchpad-process-pool/CMakeLists.txt index caec083e..b0af4fe9 100644 --- a/src/launchpad-process-pool/CMakeLists.txt +++ b/src/launchpad-process-pool/CMakeLists.txt @@ -39,7 +39,6 @@ APPLY_PKG_CONFIG(${TARGET_LAUNCHPAD_PROCESS_POOL} PUBLIC TANCHOR_DEPS TTRACE_DEPS VCONF_DEPS - CAPI_SYSTEM_RESOURCE_DEPS ) TARGET_LINK_LIBRARIES(${TARGET_LAUNCHPAD_PROCESS_POOL} PUBLIC "-lm -ldl") diff --git a/src/launchpad-process-pool/src/launchpad.c b/src/launchpad-process-pool/src/launchpad.c index 745ffa4e..79bc2196 100644 --- a/src/launchpad-process-pool/src/launchpad.c +++ b/src/launchpad-process-pool/src/launchpad.c @@ -15,7 +15,6 @@ */ #define _GNU_SOURCE -#include #include #include #include @@ -73,7 +72,6 @@ #define LOADERS_PATH "loaders" #define APP_DEFINED_LOADER_INFO_PATH OPT_SHARE_PATH "/" LOADERS_PATH #define COMMON_LOADER_NAME "common-loader1" -#define LAUNCHPAD_PROCESS_NAME "launchpad-process-pool" #define LAUNCHER_INFO_PATH LOADER_INFO_PATH #define REGULAR_UID_MIN 5000 @@ -786,13 +784,6 @@ static int __fork_app_process(int (*child_fn)(void *), void *arg) } if (pid == 0) { - resource_pid_t resource_st = { - pid = getpid(), - }; - ret = resource_clear_cpu_boosting(resource_st); - if (ret != 0) - _E("Failed to clear cpu boosting. error(%d)", ret); - _W("security_manager_prepare_app_candidate ++"); ret = security_manager_prepare_app_candidate(); _W("security_manager_prepare_app_candidate --"); @@ -3165,9 +3156,6 @@ static gboolean __launchpad_recovery_cb(gpointer data) static int __before_loop(int argc, char **argv) { int ret; - resource_pid_t resource_st = { - .pid = getpid(), - }; _print_hwc_log("%s(%d): START", __FUNCTION__, __LINE__); ret = __sequencer_init(); @@ -3239,27 +3227,11 @@ static int __before_loop(int argc, char **argv) _log_init(); _print_hwc_log("%s(%d): END", __FUNCTION__, __LINE__); - ret = resource_register_cpu_inheritance_destination( - (char*)LAUNCHPAD_PROCESS_NAME, resource_st); - if (ret != 0) { - _E("Failed to register cpu inheritance destination. error(%d)", - ret); - } - return 0; } static void __after_loop(void) { - int ret; - - ret = resource_unregister_cpu_inheritance_destination( - (char*)LAUNCHPAD_PROCESS_NAME); - if (ret != 0) { - _E("Failed to unregister cpu inheritance destination. " - "error(%d)", ret); - } - _log_fini(); _memory_monitor_fini(); __unregister_vconf_events();