summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2014-07-29 12:50:49 +0200
committerEduardo Valentin <edubezval@gmail.com>2014-07-29 15:27:54 +0200
commit39811569e43a81417bc0ddca3d0c7658c3dcd4b0 (patch)
tree72f3375f4000c27ba0f15d0a88c64d5536c32a8d /drivers/thermal
parentthermal: trace: Trace temperature changes (diff)
downloadlinux-39811569e43a81417bc0ddca3d0c7658c3dcd4b0.tar.xz
linux-39811569e43a81417bc0ddca3d0c7658c3dcd4b0.zip
thermal: trace: Trace when a cooling device's state is updated
Introduce and use an event to trace when a cooling device's state is updated. This is useful to follow the effect of governor decisions on cooling devices. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 6b32391260a0..c74c78d28699 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -1291,6 +1291,7 @@ void thermal_cdev_update(struct thermal_cooling_device *cdev)
mutex_unlock(&cdev->lock);
cdev->ops->set_cur_state(cdev, target);
cdev->updated = true;
+ trace_cdev_update(cdev, target);
dev_dbg(&cdev->device, "set to state %lu\n", target);
}
EXPORT_SYMBOL(thermal_cdev_update);