Skip to content
Commit d373aa52 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt Committed by Tarun Karra
Browse files

msm: kgsl: Add REGISTER_INIT_LIST_WITH_SPINLOCK CP_INIT ordinal



Allocate a 4K buffer which will hold the IFPC and preemption register
initialization lists. There is a dynamic part of this list which
will hold enabled perfcounter register/value pairs. The buffer
also holds a spinlock structure to be used by both CPU and CP when
updating and reading the lists, respectively.

Peterson's algorithm is used to synchronize the reads and writes.

Change-Id: Ib995262fafcc7f0b47df0ef239d9fb61654d4df1
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent 76913944
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment