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

Commit 2f2b4b69 authored by Mahesh Sivasubramanian's avatar Mahesh Sivasubramanian
Browse files

drivers: cpuidle: lpm-levels: Remove conversion to SCLK cycles



The system_pm driver takes sleep time in microseconds. The programming
in SCLK was required by earlier SOCs that expected sleep time in SCLK
ticks. On newer, chipsets this division results in a shorter sleep
duration being programmed at the System timer.

Remove conversion from microseconds to SCLK cycles.

Change-Id: I8fc0449f051de9650831af49a2315fb158660c0c
Signed-off-by: default avatarMahesh Sivasubramanian <msivasub@codeaurora.org>
parent c29e5a41
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1045,7 +1045,6 @@ static int cluster_configure(struct lpm_cluster *cluster, int idx,
		clear_predict_history();
		clear_cl_predict_history();

		do_div(us, USEC_PER_SEC/SCLK_HZ);
		system_sleep_enter(us);
	}
	/* Notify cluster enter event after successfully config completion */