OSDN Git Service

msm: kgsl: Dump preemption record only if it is enabled
authorRajesh Kemisetti <rajeshk@codeaurora.org>
Fri, 20 Jan 2017 07:34:46 +0000 (13:04 +0530)
committerRajesh Kemisetti <rajeshk@codeaurora.org>
Fri, 20 Jan 2017 12:10:31 +0000 (17:40 +0530)
commit3619a61f04b97ea5e8b863199bf4918465bef613
tree2399a5e765668ad89deca168db44e0c361b922bf
parent1f1d94408446043289fe0126897f98af2dce0ecd
msm: kgsl: Dump preemption record only if it is enabled

During GPU snapshot dump path, a5xx_snapshot() tries to
capture preemption record without really checking on the
availability of preemption feature.

Add a check for preemption feature and then proceed.

Change-Id: I6ee23a1d8006ba18a25fb341bb88d8944ff054b7
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
drivers/gpu/msm/adreno_a5xx_snapshot.c