summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDeepak Kumar <dkumar@codeaurora.org>2017-01-03 21:49:03 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-01-25 01:36:39 -0800
commit3a798eea0bbfad711c9ba14c8ad5439af3c0206a (patch)
tree8c514d875aed2a8e580e63632c0a636a5d94ad97 /tools/perf/scripts/python
parent314869eb56763d34f91d5483b0d510267894fadd (diff)
msm: kgsl: refcount irq to avoid racing against idle check
Current irq handler clears the pending interrupt bits in interrupt status register before serving the interrupts. This leads to a race condition with the idle check which checks the interrupt status register to determine whether any interrupt is pending or not. As the interrupt status register is already cleared, idle check goes ahead and switch off the GPU clocks even when irq is yet to be served causing NOC errors. This change refcounts each irq handler call and uses this reference count to determine if any irq is still pending or not along with interrupt status register to avoid this race condition. Change-Id: I030d52c52055f836ea4c7519ce2d8db94a2a09a0 Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions