drivers: thermal: Add trace event for hysteresis clear
Add new trace event to display information related to hysteresis clear.
Also update the cdev trace to print the aggregated floor request for a
cooling device.
Update the step_wise and low limits governor to call the hysteresis
trace when the hysteresis temperature is cleared.
Change-Id: I265f90c247f4bab65abeece68175bfc8853d459d
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index f905103..9842941 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -444,7 +444,7 @@
if (trip_temp <= 0 || tz->temperature < trip_temp)
return;
- trace_thermal_zone_trip(tz, trip, trip_type);
+ trace_thermal_zone_trip(tz, trip, trip_type, true);
if (tz->ops->notify)
tz->ops->notify(tz, trip, trip_type);
@@ -1768,7 +1768,7 @@
cdev->ops->set_min_state(cdev, min_target);
cdev->updated = true;
mutex_unlock(&cdev->lock);
- trace_cdev_update(cdev, current_target);
+ trace_cdev_update(cdev, current_target, min_target);
dev_dbg(&cdev->device, "set to state %lu min state %lu\n",
current_target, min_target);
}