cpu-boosting: Remove useless overhead caused by governor 54/298254/2
authorUnsung Lee <unsung.lee@samsung.com>
Mon, 4 Sep 2023 07:50:29 +0000 (16:50 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 5 Sep 2023 00:09:35 +0000 (09:09 +0900)
commitc237969fd5e4530ae9da44a92058a85185d2bd00
tree3b47f5cce9609f74f21c51588196006f263e92bd
parent66f58784662dff9704b8be62f67e8d5d8f924466
cpu-boosting: Remove useless overhead caused by governor

Remove useless overhead caused by cpu boosting governor.

It removes useless overhead in two cases
  1. If cpu is not busy when stall event is monitored, then
     do not decrease boost thread level
  2. If action list to do is empty and no already decreased thread,
     then do not make an additional timer. This timer is used to check
     whether there is not stall event during interval.

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