Re: [PATCH] staging: ozwpan: Fix build warning.

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

 



Why do not use div_u64() ?

[quote]unsigned 64bit divide with 32bit divisor

This is the most common 64bit divide and should be used if possible,
as many 32bit archs can optimize this variant better than a full 64bit
divide.
[/quote]

> -               ep->credit += timespec_to_ns(&delta) / NSEC_PER_MSEC;
> +               ep->credit += div64_u64(timespec_to_ns(&delta), NSEC_PER_MSEC);
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux