drivers: timer: Fix the logic to compensate the clock when turned off
The original logic relied on the tick passed in. This method
is inaccurate as the tick value passed in was the exit latency.
Update the code to calculate the remaining time left and set
a counter using this value.
Signed-off-by:
Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Loading
Please sign in to comment