Re: [Patch 1/2] usb/serial/mct_usb232: move DMA buffers to heap

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

 



On Sat, 5 Dec 2009 23:47:30 -0500 (EST)
Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:

> > +	buf[0] = divisor;
> > +	buf[1] = divisor >> 8;
> > +	buf[2] = divisor >> 16;
> > +	buf[3] = divisor >> 24;
> 
> For new code you really should use put_unaligned_le32().  It is 
> optimized to perform better than this code on architectures that can do 
> unaligned accesses in hardware.

Sure, I can do that too.

-- Pete
--
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