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

Commit 4f451464 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Converts A6XX power counter value to microseconds"

parents 9c48fc49 07550733
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2855,9 +2855,15 @@ static void adreno_power_stats(struct kgsl_device *device,
			gpu_busy += adj;
		}

		if (kgsl_gmu_isenabled(device)) {
			/* clock sourced from XO */
			stats->busy_time = gpu_busy * 10 / 192;
		} else {
			/* clock sourced from GFX3D */
			stats->busy_time = adreno_ticks_to_us(gpu_busy,
				kgsl_pwrctrl_active_freq(pwr));
		}
	}

	if (device->pwrctrl.bus_control) {
		uint64_t ram_cycles = 0, starved_ram = 0;