|
@@ -336,7 +336,8 @@ static void monitor_thermal_zone(struct thermal_zone_device *tz)
|
|
static void handle_non_critical_trips(struct thermal_zone_device *tz,
|
|
static void handle_non_critical_trips(struct thermal_zone_device *tz,
|
|
int trip, enum thermal_trip_type trip_type)
|
|
int trip, enum thermal_trip_type trip_type)
|
|
{
|
|
{
|
|
- tz->governor->throttle(tz, trip);
|
|
|
|
|
|
+ if (tz->governor)
|
|
|
|
+ tz->governor->throttle(tz, trip);
|
|
}
|
|
}
|
|
|
|
|
|
static void handle_critical_trips(struct thermal_zone_device *tz,
|
|
static void handle_critical_trips(struct thermal_zone_device *tz,
|