Merge "msm: kgsl: Dump preemption record only if it is enabled"

This commit is contained in:
Linux Build Service Account 2017-01-23 04:04:06 -08:00 committed by Gerrit - the friendly Code Review server
commit 5b5a6be59f

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and * it under the terms of the GNU General Public License version 2 and
@ -943,11 +943,13 @@ void a5xx_snapshot(struct adreno_device *adreno_dev,
a5xx_snapshot_debugbus(device, snapshot); a5xx_snapshot_debugbus(device, snapshot);
/* Preemption record */ /* Preemption record */
FOR_EACH_RINGBUFFER(adreno_dev, rb, i) { if (adreno_is_preemption_enabled(adreno_dev)) {
kgsl_snapshot_add_section(device, FOR_EACH_RINGBUFFER(adreno_dev, rb, i) {
KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2, kgsl_snapshot_add_section(device,
snapshot, snapshot_preemption_record, KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2,
&rb->preemption_desc); snapshot, snapshot_preemption_record,
&rb->preemption_desc);
}
} }
} }