thermal: remove redundant cdev_to_watch registration
authorTeYuan Wang <kamewang@google.com>
Thu, 19 Mar 2020 13:24:00 +0000 (21:24 +0800)
committerFrancescodario Cuzzocrea <bosconovic@gmail.com>
Tue, 22 Dec 2020 10:37:11 +0000 (11:37 +0100)
commite2737f7c4ed085358c50dbe2a5603e1c5c96cf56
tree99a5f8aef49d8e643f986237b436ec5e36eaed7e
parent998e4cfbfb6912a4e7d9bd562a02a45e41798cf3
thermal: remove redundant cdev_to_watch registration

cdev_to_watch fd causes pollOnce function return immediatly.
Because thermalhal does not monitor cdev status now,
so remove cdev_to_watch fd to avoid threadLoop busy problem.

Bug: 151897840
Test: Verified thermalhal notifythrottling via emul_temp
      thermalhal will not keep busy.
Change-Id: I999c9b843dde5870d83d8305d5517196188fa819
Signed-off-by: TeYuan Wang <kamewang@google.com>
hidl/thermal/thermal-helper.cpp
hidl/thermal/utils/thermal_watcher.cpp
hidl/thermal/utils/thermal_watcher.h