pass: resmon: Add new power_supply uevent type to catch temperature changes 67/262367/2
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Aug 2021 04:54:26 +0000 (13:54 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 11 Aug 2021 06:06:14 +0000 (15:06 +0900)
commit6b8930c7d6cb4a75ff74dd224010a95947aecabf
tree22cb888729fa27615e36b1fba68bc8875738274d
parent9b441728046be49cc31ec62985174dda303b0b0d
pass: resmon: Add new power_supply uevent type to catch temperature changes

The power_supply subsystem in Linux kernel provides the temperature information
via POWER_SUPPLY_PROP_TEMP property. In order to catch the temperature changes,
add power_supply uevent subsystem type. When send power_supply uevent to
user-space from kernel space, resource monitor try to get the current
temperature for deciding the proper thermal scenario and then control the h/w
resources.

Change-Id: If5ae48885f2c5b895bf24c5f9da3193fdea85981
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass-resmon-source.c