Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecde0fd8 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Use one define for max priority levels



Don't redefine the macro since that could result in inconsistent
data if one of them changes and the isn't updated.

CRs-Fixed: 971159
Change-Id: I57ab3113fbdd82c70cba1c79f4b996cea09a8739
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent ef78af1b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -33,8 +33,6 @@
#define DEVICE_3D_NAME "kgsl-3d"
#define DEVICE_3D0_NAME "kgsl-3d0"

#define ADRENO_PRIORITY_MAX_RB_LEVELS	4

/* ADRENO_DEVICE - Given a kgsl_device return the adreno device struct */
#define ADRENO_DEVICE(device) \
		container_of(device, struct adreno_device, dev)
@@ -339,7 +337,7 @@ struct adreno_device {
	struct kgsl_memdesc pm4;
	size_t gpmu_cmds_size;
	unsigned int *gpmu_cmds;
	struct adreno_ringbuffer ringbuffers[ADRENO_PRIORITY_MAX_RB_LEVELS];
	struct adreno_ringbuffer ringbuffers[KGSL_PRIORITY_MAX_RB_LEVELS];
	int num_ringbuffers;
	struct adreno_ringbuffer *cur_rb;
	struct adreno_ringbuffer *next_rb;
+1 −1
Original line number Diff line number Diff line
@@ -2149,7 +2149,7 @@ struct adreno_gpudev adreno_a4xx_gpudev = {
	.irq = &a4xx_irq,
	.irq_trace = trace_kgsl_a4xx_irq_status,
	.snapshot_data = &a4xx_snapshot_data,
	.num_prio_levels = ADRENO_PRIORITY_MAX_RB_LEVELS,
	.num_prio_levels = KGSL_PRIORITY_MAX_RB_LEVELS,
	.vbif_xin_halt_ctrl0_mask = A4XX_VBIF_XIN_HALT_CTRL0_MASK,

	.perfcounter_init = a4xx_perfcounter_init,
+1 −1
Original line number Diff line number Diff line
@@ -3878,7 +3878,7 @@ struct adreno_gpudev adreno_a5xx_gpudev = {
	.irq = &a5xx_irq,
	.snapshot_data = &a5xx_snapshot_data,
	.irq_trace = trace_kgsl_a5xx_irq_status,
	.num_prio_levels = ADRENO_PRIORITY_MAX_RB_LEVELS,
	.num_prio_levels = KGSL_PRIORITY_MAX_RB_LEVELS,
	.platform_setup = a5xx_platform_setup,
	.init = a5xx_init,
	.rb_init = a5xx_rb_init,