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: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
2 files changed