Re: [PATCH i-g-t v8 1/3] lib/igt_core: Add tolerance and measured_usleep utils

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vinay,

> Add these redundant utils to core lib. Also fix the bug in

I think "Move" would better describe what you do in this patch.

> +	slept = igt_measured_usleep(batch_duration_ns / 1000) * NSEC_PER_USEC;

Since you return usec instead of nsec, you had to add
"* NSEC_PER_USEC" in many instances that this function is called.
How about dropping returning usec alltogether and stick to
returning nsec value? (and rename/modify the function to handle
nsec values as well)

Krzysztof



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux