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

Commit 12a642c1 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Trigger preemption only when preemption is enabled



Preemption should be triggered only when preemption is enabled
for the device.

Change-Id: I67e6f95da2fe6794e38a8552e74c03d5bd9739fb
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 3228fead
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2179,7 +2179,9 @@ static void a6xx_cp_callback(struct adreno_device *adreno_dev, int bit)
{
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);

	if (adreno_is_preemption_enabled(adreno_dev))
		a6xx_preemption_trigger(adreno_dev);

	adreno_dispatcher_schedule(device);
}