tools/power turbostat: rename tcc variables
authorZhang Rui <rui.zhang@intel.com>
Mon, 26 Apr 2021 10:49:26 +0000 (18:49 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 5 May 2021 00:01:09 +0000 (20:01 -0400)
commit55279aef754c5eab170077ae4ba4ebd304dea64f
tree369e7da59b35502c7a4f13be84cbe04134ed5798
parent0b9a0b9be991656f125b58a240065cdf72077244
tools/power turbostat: rename tcc variables

There are two TCC activation temeprature.
One is the default TCC activation temperature, also known as TJ_MAX.
Another one is the effective TCC activation temperature, which is the
subtraction of default TCC activation temperature and TCC offset.

The name of variable tcc_activation_temp might be misleading here.
Thus rename tcc_activation_temp to tj_max, and use tcc_default and
tcc_offset to calculate the effective TCC activation temperature.

No functional change in this patch.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c