cpu-boosting: Modify cpu boosting level to handle cpu contention 38/297138/7
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 10 Aug 2023 23:55:39 +0000 (08:55 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 30 Aug 2023 03:17:00 +0000 (12:17 +0900)
commit8ef30e8c9eb637e9b237b65d45eba5012786bd5c
treef6b406173102ae045c850c3c475b17d16d91db50
parent97c504a9e60821cd7aef1233f68698e50e0342e1
cpu-boosting: Modify cpu boosting level to handle cpu contention

Modify cpu boosting level to handle cpu contention.
The cpu boosting governor makes a list of commands to handle cpu contention,
and it decreases cpu boosting level of some threads (victims).

The cpu boosting module waits for timer events to check whehter cpu contention
is alleviated or not. If so, restoring cpu boosting level.
If not, making a new timer to check cpu contention after some interval.

Currently, cpu boosting module just checks whether PSI events are not
triggered for some interval. It is not the best solution, but simple
and intuitive solution.

Change-Id: I897c89c054ab11ed08ad16ef171610d7fa2944bd
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-boosting.c