summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2019-06-24 13:32:03 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-24 18:15:42 +0300
commitf485cc36b0a7d72335662921b4b89346c6423422 (patch)
tree87de5d9acc99112976a5bbe45ac7c28035a6a174 /tools/perf/scripts/python/export-to-sqlite.py
parent6f73862fabd93213de157d9cc6ef76084311c628 (diff)
downloadlinux-f485cc36b0a7d72335662921b4b89346c6423422.tar.xz
mlxsw: core: Add support for negative temperature readout
Extend macros MLXSW_REG_MTMP_TEMP_TO_MC() to allow support of negative temperature readout, since chip and others thermal components are capable of operating within the negative temperature. With no such support negative temperature will be consider as very high temperature and it will cause wrong readout and thermal shutdown. For negative values 2`s complement is used. Tested in chamber. Example of chip ambient temperature readout with chamber temperature: -10 Celsius: temp1: -6.0C (highest = -5.0C) -5 Celsius: temp1: -1.0C (highest = -1.0C) v2 (Andrew Lunn): * Replace '%u' with '%d' in mlxsw_hwmon_module_temp_show() Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions