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

Commit 89d64fee authored by Kyle Piefer's avatar Kyle Piefer Committed by Gerrit - the friendly Code Review server
Browse files

Revert "msm: kgsl: Do not decrease the KGSL open count"



This reverts commit e4d68fef.
Slumber has been verified to work on SDM845 so this is no
longer needed to prevent it.

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


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


	mutex_lock(&device->mutex);
	mutex_lock(&device->mutex);

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

	if (device->open_count == 0) {
	if (device->open_count == 0) {


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