• Lukasz Luba's avatar
    trace: thermal: add another parameter 'power' to the tracing function · 771ffa14
    Lukasz Luba authored
    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: default avatarJavi Merino <javi.merino@kernel.org>
    Signed-off-by: default avatarLukasz Luba <lukasz.luba@arm.com>
    771ffa14
thermal.h 5.42 KB