cpu-boosting-monitor: Notify cpu boosting module when monitoring cpu PSIs 25/297125/5
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 9 Aug 2023 07:27:06 +0000 (16:27 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 28 Aug 2023 01:49:13 +0000 (10:49 +0900)
commit805daa0a694886ad56c94e0200fc28bd866a1263
treee69e4f607751f60cd5e811095549b63624da6847
parent175697d232e90cdd62b039847d0c36e9e9df173f
cpu-boosting-monitor: Notify cpu boosting module when monitoring cpu PSIs

Notify cpu boosting module when cpu PSIs are triggered.
When monitoring cpu PSIs, the monitor needs to wake up cpu boosting main thread.
This is because cpu boosting monitor just catches cpu PSIs and need to
wait for next PSI events.

Thread running cpu boosting monitor should wake up main cpu boosting thread
running g_main_loop_run() function. When main cpu boosting is idle,
the thread is woken up immediately.

Change-Id: I7f89265f4e7394c07c86cb0f3e40edc785eb922c
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-boosting-monitor-psi.c
src/resource-optimizer/cpu/cpu-boosting.c
src/resource-optimizer/cpu/cpu-boosting.h [new file with mode: 0644]