diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-07-14 17:03:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 23:35:40 +0200 |
commit | bccbefaae050186bed3bcc74b1fd1a9b8c6710b2 (patch) | |
tree | 26f1da2850c372bd78e733d7b14006d86abb5b0d /drivers/usb/host/ehci-hcd.c | |
parent | USB: EHCI: remove PCI assumption (diff) | |
download | linux-bccbefaae050186bed3bcc74b1fd1a9b8c6710b2.tar.xz linux-bccbefaae050186bed3bcc74b1fd1a9b8c6710b2.zip |
USB: EHCI: simplify remainder computations
This patch (as1406) adds a micro-optimization to ehci-hcd's scheduling
code. Instead of computing remainders with respect to the schedule
length, use bitwise-and (which is quicker). We know that the schedule
length will always be a power of two, but the compiler doesn't have
this information.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
0 files changed, 0 insertions, 0 deletions