Re: Linux UVC driver can not handle urb_submit error

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

 



On Fri, 3 Jun 2011, Soho Soho123 wrote:

> Dear Alan,
> 
> Ok, I will apply patch and test again. Since time difference issue, I
> can not do test now. It will be done when I back to office.
> In advance, the question:
> get_cpu_cycles() just get current count, right?

Right.  You'll have to replace that with the actual routine you use to 
read the CPU cycle counter.

> it is not necessary to do calculation of (exit point - enter point), right?

Right, you don't have to do it.

> or it also do the calculation then retrun the count?

The patch already does the calculation.  You can see it in these lines:

+ 		c2 = get_cpu_cycles();
+ 		stats[next_stat].cpu_cycle_count = c2 - cpu_cycles;
+ 		cpu_cycles = c2;

Alan Stern


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux