From: Hyotaek Shim Date: Fri, 22 Jul 2022 07:20:03 +0000 (+0900) Subject: Modify backup/restore of original policy in resource_set_cpu_boosting API X-Git-Tag: submit/tizen/20220725.093537~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F278591%2F2;p=platform%2Fcore%2Fapi%2Fresource.git Modify backup/restore of original policy in resource_set_cpu_boosting API Change-Id: Iaef502fc7cc67ca3d31bfbd851da22d535d7b8a9 Signed-off-by: Hyotaek Shim --- diff --git a/include/cpu-boosting.h b/include/cpu-boosting.h index eec7420..03ed613 100644 --- a/include/cpu-boosting.h +++ b/include/cpu-boosting.h @@ -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