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

Commit 002ce2ea authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: kgsl: Remove context debugfs nodes early



Remove the context debugfs nodes immediately after detaching the
existing objects in the context queue. The debugfs nodes are not
useful after this point.

Change-Id: If991307f800abe34b24e15dbb5cfb3748ac54767
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 28b9efd9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -505,6 +505,8 @@ void adreno_drawctxt_detach(struct kgsl_context *context)
		kgsl_drawobj_destroy(list[i]);
	}

	debugfs_remove_recursive(drawctxt->debug_root);

	/*
	 * internal_timestamp is set in adreno_ringbuffer_addcmds,
	 * which holds the device mutex.
@@ -562,8 +564,6 @@ void adreno_drawctxt_detach(struct kgsl_context *context)

	mutex_unlock(&device->mutex);

	debugfs_remove_recursive(drawctxt->debug_root);

	/* wake threads waiting to submit commands from this context */
	wake_up_all(&drawctxt->waiting);
	wake_up_all(&drawctxt->wq);