msm: kgsl: Use spin_lock_bh to avoid spinlock recursion
A sync fence timeout may lead to call adreno_drawctxt_dump()
for drawctxt sync pt dump, at the same time, its quite possible
that the cmdbatch timer expires on the *same* CPU, this will
also lead to call adreno_drawctx_dump(). This result into spin
lock recursion. Use spin_lock_bh instead of spin_lock to disable
soft irq (timer) while we are dumping the sync pt information.
Along with this change, few _irq are replaced with _bh, which
is enough to disable soft irq (timers).
Change-Id: I0d56601b81ded7c4821e2d9a837fb9e6b121ea8a
Signed-off-by:
Prakash Kamliya <pkamliya@codeaurora.org>
Loading
Please register or sign in to comment