tools/lib/thermal: Add a thermal library
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 20 Apr 2022 16:09:29 +0000 (18:09 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 May 2022 10:11:51 +0000 (12:11 +0200)
commit47c4b0de080adc125526aa80221c4e3ffbf97b6d
tree0652d2e2a500ca1521397e294c6d6591f7949548
parentbf70c577516b8d9fbe703371aa98bbea13661cec
tools/lib/thermal: Add a thermal library

The thermal framework implements a netlink notification mechanism to
be used by the userspace to have a thermal configuration discovery,
trip point changes or violation, cooling device changes notifications,
etc...

This library provides a level of abstraction for the thermal netlink
notification allowing the userspace to connect to the notification
mechanism more easily. The library is callback oriented.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20220420160933.347088-2-daniel.lezcano@linaro.org
14 files changed:
MAINTAINERS
tools/Makefile
tools/lib/thermal/.gitignore [new file with mode: 0644]
tools/lib/thermal/Build [new file with mode: 0644]
tools/lib/thermal/Makefile [new file with mode: 0644]
tools/lib/thermal/commands.c [new file with mode: 0644]
tools/lib/thermal/events.c [new file with mode: 0644]
tools/lib/thermal/include/thermal.h [new file with mode: 0644]
tools/lib/thermal/libthermal.map [new file with mode: 0644]
tools/lib/thermal/libthermal.pc.template [new file with mode: 0644]
tools/lib/thermal/sampling.c [new file with mode: 0644]
tools/lib/thermal/thermal.c [new file with mode: 0644]
tools/lib/thermal/thermal_nl.c [new file with mode: 0644]
tools/lib/thermal/thermal_nl.h [new file with mode: 0644]