commit | bccbefaae050186bed3bcc74b1fd1a9b8c6710b2 | [log] [tgz] |
---|---|---|
author | Alan Stern <stern@rowland.harvard.edu> | Wed Jul 14 11:03:36 2010 -0400 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue Aug 10 14:35:40 2010 -0700 |
tree | 26f1da2850c372bd78e733d7b14006d86abb5b0d | |
parent | ae68a83bdc1971cb02fefc7a686ba6d077065e71 [diff] |
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>