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

Commit e4d68fef authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Do not decrease the KGSL open count



Do not reduce the open count in kgsl_close_device to
keep from powering down the GPU.

CRs-Fixed: 2017390
Change-Id: Ibfef14b409f42aa54cc3ce1738793c36ff1fac70
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent e40d860d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@
#include "kgsl_sync.h"
#include "kgsl_compat.h"
#include "kgsl_pool.h"
#include "adreno.h"

#undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "kgsl."
@@ -1045,7 +1046,10 @@ static int kgsl_close_device(struct kgsl_device *device)
	int result = 0;

	mutex_lock(&device->mutex);

	if (!adreno_is_a6xx(ADRENO_DEVICE(device)))
		device->open_count--;

	if (device->open_count == 0) {

		/* Wait for the active count to go to 0 */