Loading drivers/thermal/thermal_core.c +6 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ #include "thermal_core.h" #define THERMAL_UEVENT_DATA "type" MODULE_AUTHOR("Zhang Rui"); MODULE_DESCRIPTION("Generic thermal management sysfs support"); MODULE_LICENSE("GPL v2"); Loading Loading @@ -315,6 +317,10 @@ int thermal_sensor_trip(struct thermal_zone_device *tz, ((trip == THERMAL_TRIP_CONFIGURABLE_HI) && (pos->temp >= tz->sensor.threshold_max) && (pos->temp <= temp))) { if ((pos == &tz->tz_threshold[0]) || (pos == &tz->tz_threshold[1])) sysfs_notify(&tz->device.kobj, NULL, THERMAL_UEVENT_DATA); pos->active = 0; pos->notify(trip, temp, pos->data); } Loading Loading
drivers/thermal/thermal_core.c +6 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ #include "thermal_core.h" #define THERMAL_UEVENT_DATA "type" MODULE_AUTHOR("Zhang Rui"); MODULE_DESCRIPTION("Generic thermal management sysfs support"); MODULE_LICENSE("GPL v2"); Loading Loading @@ -315,6 +317,10 @@ int thermal_sensor_trip(struct thermal_zone_device *tz, ((trip == THERMAL_TRIP_CONFIGURABLE_HI) && (pos->temp >= tz->sensor.threshold_max) && (pos->temp <= temp))) { if ((pos == &tz->tz_threshold[0]) || (pos == &tz->tz_threshold[1])) sysfs_notify(&tz->device.kobj, NULL, THERMAL_UEVENT_DATA); pos->active = 0; pos->notify(trip, temp, pos->data); } Loading