mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
This change adds a cooling device driver to notify the user space of the thermal trip event. To avoid having user space process poll the cooling state, a sysfs node is exposed that supports blocking reads. The driver also supports a timeout (in milliseconds) for blocking reads which can be done by writing the value to thermal_trip_event_block node before reading. The blocked user space process will be woken up when the cooling device becomes active or times out. Bug 4261645 Bug 1688327 Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com> Change-Id: Ic89406ba2713e5bc8f3806d6cfeb462601c73a7d Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3015652 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>