Add cpu boosting required command 80/320880/3
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 25 Nov 2024 06:27:53 +0000 (15:27 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 25 Nov 2024 06:39:06 +0000 (15:39 +0900)
APP_IS_RUNNING is added to cpu boosting required command list.

Change-Id: I85a0585a7ff6c8936b9021a3a4dabbc2fb7568ef
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/aul/cpu_inheritance.cc
src/aul/cpu_inheritance.hh

index 15723923b87213954c39011a8e15455cd203064a..0fa63148bdabede3609c25f9c59872830266dc84 100644 (file)
@@ -40,7 +40,7 @@ CPUInheritance::CPUInheritance(std::string destination)
 
 CPUInheritance::CPUInheritance(pid_t pid, int cmd)
     : destination_(DEST_PROCESS) {
-  if (pid == -2 && IsLaunchRequest(cmd)) {
+  if (pid == -2 && IsCPUInheritanceRequired(cmd)) {
     int ret = resource_set_cpu_inheritance(gettid(), destination_.c_str(), -1);
     if (ret != 0)
       _E("resource_set_cpu_inheritance() is failed. error(%d)", ret);
@@ -65,7 +65,7 @@ CPUInheritance::~CPUInheritance() {
   }
 }
 
-bool CPUInheritance::IsLaunchRequest(int cmd) {
+bool CPUInheritance::IsCPUInheritanceRequired(int cmd) {
   switch (cmd) {
     case APP_START:
     case APP_OPEN:
@@ -74,6 +74,7 @@ bool CPUInheritance::IsLaunchRequest(int cmd) {
     case APP_START_ASYNC:
     case APP_SEND_LAUNCH_REQUEST_SYNC:
     case RPC_PORT_PREPARE_STUB:
+    case APP_IS_RUNNING:
       return true;
     default:
       return false;
index 4085927a2b688d8e46268612b2d34859fed53741..f37ee7272f738124172b3aa7884262a88e67ecc3 100644 (file)
@@ -32,7 +32,7 @@ class CPUInheritance {
   ~CPUInheritance();
 
  private:
-  static bool IsLaunchRequest(int cmd);
+  static bool IsCPUInheritanceRequired(int cmd);
 
  private:
   std::string destination_;