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

Commit c5c17de2 authored by Rajeev Kulkarni's avatar Rajeev Kulkarni Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Do not take active count in snapshot



Do not take active count in snapshot because it should always be called
with mutex held and power on.

CRs-Fixed: 797064
Change-Id: I6c25e0abfe515a56fbc131e824df1f6e04539724
Signed-off-by: default avatarRajeev Kulkarni <krajeev@codeaurora.org>
parent 168f49e7
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -661,13 +661,7 @@ int kgsl_device_snapshot(struct kgsl_device *device,
		return -ENOMEM;
	}

	/* We need to have the GPU on for the entire snapshotting operation */

	if (kgsl_active_count_get(device)) {
		KGSL_DRV_ERR(device, "snapshot: unable to turn on the GPU\n");
		return -EINVAL;
	}

	BUG_ON(!kgsl_state_is_awake(device));
	/* increment the hang count for good book keeping */
	device->snapshot_faultcount++;

@@ -736,7 +730,6 @@ int kgsl_device_snapshot(struct kgsl_device *device,
	 */
	queue_work(device->work_queue, &snapshot->work);
done:
	kgsl_active_count_put(device);
	return ret;
}
EXPORT_SYMBOL(kgsl_device_snapshot);