]> git.baikalelectronics.ru Git - kernel.git/commit
trace: thermal: add another parameter 'power' to the tracing function
authorLukasz Luba <lukasz.luba@arm.com>
Thu, 4 May 2017 11:34:33 +0000 (12:34 +0100)
committerZhang Rui <rui.zhang@intel.com>
Fri, 5 May 2017 07:54:45 +0000 (15:54 +0800)
commit6e4918ce3c3aca890dbb95479f3dadef1a11960a
treee7944a6eedc65446aeae114d0ac34d8dedd51b21
parent0de2db22df7aa5df2dc900104d4ebedec9458aa1
trace: thermal: add another parameter 'power' to the tracing function

This patch adds another parameter to the trace function:
trace_thermal_power_devfreq_get_power().

In case when we call directly driver's code for the real power,
we do not have static/dynamic_power values. Instead we get total
power in the '*power' value. The 'static_power' and
'dynamic_power' are set to 0.

Therefore, we have to trace that '*power' value in this scenario.

CC: Steven Rostedt <rostedt@goodmis.org>
CC: Ingo Molnar <mingo@redhat.com>
CC: Zhang Rui <rui.zhang@intel.com>
CC: Eduardo Valentin <edubezval@gmail.com>
Acked-by: Javi Merino <javi.merino@kernel.org>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/devfreq_cooling.c
include/trace/events/thermal.h