]> git.baikalelectronics.ru Git - kernel.git/commit
EHCI: replace mult/div with bit-mask operation
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 28 Sep 2012 20:01:40 +0000 (16:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 15:57:43 +0000 (08:57 -0700)
commit68978e68250fb988680a72c2831a3c7a4211e54c
tree565aa9eda9af359c7a3fcef4c6dd11d532d38b8e
parentc8afb5fadcdd56dfb27f61a24338ffa953ae798e
EHCI: replace mult/div with bit-mask operation

This patch (as1610) replaces multiplication and divison operations in
ehci-hcd's isochronous scheduling code with a bit-mask operation,
taking advantage of the fact that isochronous periods are always
powers of 2.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c