Commit 6c47a27b authored by Jeff Ohlstein's avatar Jeff Ohlstein
Browse files

msm: timer: Loop on clear status bit after clearing timer



Without looping on the status bit, there is no way to guarantee that a
clear of a timer has actually gone through. This can cause us to read
stale, uncleared count values, and set incorrect match values based on
them.

Additionally, remove an extraneous write to the count register, and make
the write to the clear register consistently a 0 across all cores.

CRs-Fixed: 337526
Change-Id: I84510fe9b4e9ae7648440dd3d6add17befc5a86b
Signed-off-by: default avatarJeff Ohlstein <johlstei@codeaurora.org>
parent 5e0f4822
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment