Reset scheduling priority 77/298577/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Sep 2023 03:57:57 +0000 (12:57 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Sep 2023 03:57:57 +0000 (12:57 +0900)
This patch removes calling the SchedPriority::Set(0) from the launchpad
library. After this patch is applied, the loader process should reset
the priority to zero itself.

Change-Id: I93b1e435ab4ebbe9d21b790c547010e39321dabe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app-defined-loader/app-defined-loader.cc
src/launchpad-loader/launchpad_loader.cc
src/lib/launchpad/launchpad_loader.cc

index a135dc7c2afae4fff76ea49fb2e054fed62c00fd..1d55100a1638a4d518ea74d803714d384361c46e 100644 (file)
@@ -31,6 +31,7 @@
 #include <ini_parser.hh>
 #include <plugin.hh>
 #include <procfs.hh>
+#include <sched_priority.hh>
 #include <user_tracer.hh>
 #include <util.hh>
 
@@ -156,6 +157,8 @@ class AppDefinedLoader {
       _E("Plugin::PrepareApp() is failed. error(%d)", ret);
       _exit(EXIT_FAILURE);
     }
+
+    SchedPriority::Set(0);
   }
 
   static int OnLaunch(int argc, char** argv, const char* app_path,
index 83cb8e36ae5047a29fc5e865dd197e80e12e452c..d1cdf6f71c80e3ac84e7c1487c5cf20af8f97662 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <aul_keys.hh>
 #include <procfs.hh>
+#include <sched_priority.hh>
 #include <user_tracer.hh>
 #include <util.hh>
 
@@ -174,6 +175,7 @@ void LaunchpadLoader::OnCreate(const tizen_base::Bundle& extra, int type) {
   InitializeElementary();
 
   hw_acc_config_.reset(new launchpad::HWAccelerationConfig());
+  SchedPriority::Set(0);
 }
 
 int LaunchpadLoader::OnLaunch(const LaunchArgs& args) {
index 57816c27809a5f70b560d0dbaab9807a0637bcdf..d6815efed51bbe6a7e7862cad8fa4579eaeaca6a 100644 (file)
@@ -111,7 +111,6 @@ int LaunchpadLoader::Run(loader_lifecycle_callback_s* callback,
     return -1;
   }
 
-  SchedPriority::Set(0);
   OnAdapterLoopBegin();
   return OnTerminate();
 }