Modify backup/restore of original policy in resource_set_cpu_boosting API 91/278591/2
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 22 Jul 2022 07:20:03 +0000 (16:20 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 22 Jul 2022 07:22:06 +0000 (16:22 +0900)
Change-Id: Iaef502fc7cc67ca3d31bfbd851da22d535d7b8a9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
include/cpu-boosting.h

index eec7420..03ed613 100644 (file)
@@ -33,8 +33,7 @@ extern "C" {
  * @brief Set cpu boosting for the target process (pid/tids).
  * @since_tizen 6.5
  *
- * @details The original cpu schedule configuration of the target process is backed up if it is currently not boosted.
- *          Another set request on the boosted target overrides the previous one.
+ * @details Another set request on the boosted target overrides the previous one.
  *
  * @privlevel partner
  * @privilege http://tizen.org/privilege/internal/default/partner
@@ -46,21 +45,20 @@ extern "C" {
  *                If pid.pid is zero and pid.tid is NULL, tid of the calling thread is used. \n
  *                The caller must (de)allocate the buffer in the pid.tid pointer.
  * @param[in] level The cpu boosting level
- * @param[in] flag The cpu boosting flag
+ * @param[in] flags The cpu boosting flag bits
  *                 If CPU_BOOSTING_RESET_ON_FORK is set, child processes or threads created by fork() or pthread_create()
  *                 do not inherit boosted CPU schedulder and priority from the parent.
  * @param[in] timeout_msec The timeout in milliseconds, -1 to apply boosting permanently
  *
  * @return 0 on success, otherwise a negative error value.
  */
-int resource_set_cpu_boosting (resource_pid_t pid, cpu_boosting_level_e level, cpu_boosting_flag_e flag, int timeout_msec);
+int resource_set_cpu_boosting (resource_pid_t pid, cpu_boosting_level_e level, cpu_boosting_flag_e flags, int timeout_msec);
 
 /**
  * @brief Clear cpu boosting for the boosted process (pid/tids).
  * @since_tizen 6.5
  *
- * @details The backed-up cpu schedule configuration of the boosted process is restored. \n
- *          Without the backed-up configuration, the default non-boosting configuration (SCHED_OTHER and nice=0) is applied. \n
+ * @details The default non-boosting configuration (SCHED_OTHER and nice=0) is applied.
  *
  * @privlevel partner
  * @privilege http://tizen.org/privilege/internal/default/partner