diff options
| author | Lukasz Luba <lukasz.luba@arm.com> | 2017-05-04 07:34:33 -0400 |
|---|---|---|
| committer | Zhang Rui <rui.zhang@intel.com> | 2017-05-05 03:54:45 -0400 |
| commit | 771ffa14ead18887bed400c09f4bde5bca5bf342 (patch) | |
| tree | e7944a6eedc65446aeae114d0ac34d8dedd51b21 /drivers/thermal/devfreq_cooling.c | |
| parent | 2be83da85a64773efaa407639de81bd1377f880e (diff) | |
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>
Diffstat (limited to 'drivers/thermal/devfreq_cooling.c')
| -rw-r--r-- | drivers/thermal/devfreq_cooling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/devfreq_cooling.c b/drivers/thermal/devfreq_cooling.c index 26c31571a12c..ef59256887ff 100644 --- a/drivers/thermal/devfreq_cooling.c +++ b/drivers/thermal/devfreq_cooling.c | |||
| @@ -321,7 +321,7 @@ static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cd | |||
| 321 | } | 321 | } |
| 322 | 322 | ||
| 323 | trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power, | 323 | trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power, |
| 324 | static_power); | 324 | static_power, *power); |
| 325 | 325 | ||
| 326 | return 0; | 326 | return 0; |
| 327 | fail: | 327 | fail: |
