Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a33d43ac authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "thermal: Fix deadlock in thermal thermal_zone_device_check"

parents 187e3e92 31d55f99
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ static void thermal_zone_device_set_polling(struct workqueue_struct *queue,
		mod_delayed_work(queue, &tz->poll_queue,
				 msecs_to_jiffies(delay));
	else
		cancel_delayed_work_sync(&tz->poll_queue);
		cancel_delayed_work(&tz->poll_queue);
}

static void monitor_thermal_zone(struct thermal_zone_device *tz)
@@ -1439,7 +1439,7 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)

	mutex_unlock(&thermal_list_lock);

	thermal_zone_device_set_polling(NULL, tz, 0);
	cancel_delayed_work_sync(&tz->poll_queue);

	thermal_set_governor(tz, NULL);