[Intel-gfx] [PATCH 2/2] drm/i915/selftests: Check power consumption at min/max frequencies

Andi Shyti andi.shyti at intel.com
Thu Apr 16 20:50:35 UTC 2020


Hi Chris,

> +static u64 __measure_power(int duration_ms)
> +{
> +	u64 nrg, dt;
> +
> +	dt = -ktime_get();
> +	nrg = -st_energy_uJ();
> +	msleep(5);

usleep_range?

Reviewed-by: Andi Shyti <andi.shyti at intel.com>

Thanks,
Andi


More information about the Intel-gfx mailing list