thermal: trace: Trace when temperature is above a trip point
[deliverable/linux.git] / drivers / thermal / step_wise.c
index f251521baaa24b21c23c50b2a4bb18e4abc810c9..3b54c2c226d8201c5057ca009ea69b7ab18e1b3d 100644 (file)
@@ -23,6 +23,7 @@
  */
 
 #include <linux/thermal.h>
+#include <trace/events/thermal.h>
 
 #include "thermal_core.h"
 
@@ -129,8 +130,10 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
 
        trend = get_tz_trend(tz, trip);
 
-       if (tz->temperature >= trip_temp)
+       if (tz->temperature >= trip_temp) {
                throttle = true;
+               trace_thermal_zone_trip(tz, trip, trip_type);
+       }
 
        dev_dbg(&tz->device, "Trip%d[type=%d,temp=%ld]:trend=%d,throttle=%d\n",
                                trip, trip_type, trip_temp, trend, throttle);
This page took 0.028243 seconds and 5 git commands to generate.