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

Skip to content
Commit 595fd87f authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Use a lock to protect shared variables in sync timelines



It is possible for concurrent event callbacks to be called on two
timestamps in the same timeline. If the newer timestamp makes it
in first there is a possibility that the older timestamp will
overwrite the last_timestamp variable and cause future comparisons
to fail. Use a spinlock to serialize access to the last_timestamp
variable to make sure that all accesses are clean.

Change-Id: Ic0dedbad339087cc68778c8dbdcbccbc0370d099
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 15d6bb9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment