mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
This is a temporary hack to implement a userland thermal loop. This code really belongs in the BIOS and will move there once we have gathered enough data to prove the efficacy (or otherwise) of doing such throttling. So, please pardon the ugliness of the code -- it's meant to be short-lived and therefore we wouldn't want to spend too much time on optimizing it or making it pretty. BUG=none TEST="initctl start temp_metrics" and then monitor various parameters such as CPU min/max frequency, GPU frequency, duty cycle and package power limits to ensure they are doing the right thing. Change-Id: I407e4826b4db801298f08fa72c4f2330e127322b Signed-off-by: Sameer Nanda <snanda@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28634 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>