Add CPU_BOOSTING_FORCE_RESET_ON_CLEAR flag on resource_set_cpu_boosting() 99/319299/1 accepted/tizen/unified/20250213.151248 accepted/tizen/unified/x/20250218.043753
authorUnsung Lee <unsung.lee@samsung.com>
Mon, 3 Feb 2025 04:26:12 +0000 (13:26 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Fri, 7 Feb 2025 07:59:31 +0000 (16:59 +0900)
commit323b75ea24c2b737f74d54a73e66905ff63d1cb7
tree7401ac61fea6b34d748420dc05621309c63ec3e0
parent019c0a298269d635f1aa9d90bc27082c58c69d94
Add CPU_BOOSTING_FORCE_RESET_ON_CLEAR flag on resource_set_cpu_boosting()

Add CPU_BOOSTING_FORCE_RESET_ON_CLEAR flag on resource_set_cpu_boosting() function
to reset CPU boosting forcely regardless of duplicate resource_set_cpu_boosting() on the same target.

Scenario is like below:
resource_set_cpu_boosting() with CPU_BOOSTING_FORCE_RESET_ON_CLEAR flag example:
A process: set CPU boosting on C process with CPU_BOOSTING_FORCE_RESET_ON_CLEAR flag
B process: set CPU boosting on C process
A process: clear CPU boosting on C process
In this case, CPU boosting on C process must be cleared regardless of previous CPU boosting sets.

Change-Id: Ibb104f6e492cae213d0250d746d410f6b1d2eb16
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
include/cpu-boosting-type.h
include/cpu-boosting.h
src/plugin/plugin.c
tests/main.c