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

Commit 121ff9cf authored by Shiju Mathew's avatar Shiju Mathew
Browse files

msm: thermal: Update to speed up bootup time



Update KTM driver to remove flush_scheduled_work that
would introduce bootup delay. This patch replaces
cancel_delayed_work with cancel_delayed_work_sync
to cancel a delayed work.

CRs-Fixed: 647439
Change-Id: Ie81278ca3a7a58f8f46463f7149b512bd07cbcbc
Signed-off-by: default avatarShiju Mathew <shijum@codeaurora.org>
parent 2f04273d
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2625,8 +2625,7 @@ static void __ref disable_msm_thermal(void)
	uint32_t cpu = 0;
	uint32_t cpu = 0;


	/* make sure check_temp is no longer running */
	/* make sure check_temp is no longer running */
	cancel_delayed_work(&check_temp_work);
	cancel_delayed_work_sync(&check_temp_work);
	flush_scheduled_work();


	get_online_cpus();
	get_online_cpus();
	for_each_possible_cpu(cpu) {
	for_each_possible_cpu(cpu) {