tools/thermal: tmon: add --target-temp parameter
authorBrian Norris <computersforpeace@gmail.com>
Wed, 18 Feb 2015 02:18:29 +0000 (18:18 -0800)
committerZhang Rui <rui.zhang@intel.com>
Sat, 28 Feb 2015 05:52:47 +0000 (13:52 +0800)
commit4cc32cb4e92622757685c8732bdfc400243a5644
tree02436ab9be7eae995af8c1aa67f04827572933cc
parentc517d838eb7d07bbe9507871fab3931deccff539
tools/thermal: tmon: add --target-temp parameter

If we launch in daemon mode (--daemon), we don't have the ncurses UI,
but we might want to set the target temperature still. For example,
someone might stick the following in their boot script:

  tmon --control intel_powerclamp --target-temp 90 --log --daemon

This would turn on CPU idle injection when we're around 90 degrees
celsius, and would log temperature and throttling info to
/var/tmp/tmon.log.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
tools/thermal/tmon/tmon.8
tools/thermal/tmon/tmon.c