Re: [PATCH v2] can: c_can: Speed up rx_poll function

2013-10-30 Thread Markus Pargmann
On Tue, Oct 29, 2013 at 09:24:05AM -0700, Joe Perches wrote: > On Tue, 2013-10-29 at 09:58 +0100, Markus Pargmann wrote: > > On Tue, Oct 29, 2013 at 01:34:48AM -0700, Joe Perches wrote: > > > On Tue, 2013-10-29 at 09:27 +0100, Markus Pargmann wrote: > > > > This patch speeds up the rx_poll function

Re: [PATCH v2] can: c_can: Speed up rx_poll function

2013-10-29 Thread Joe Perches
On Tue, 2013-10-29 at 09:58 +0100, Markus Pargmann wrote: > On Tue, Oct 29, 2013 at 01:34:48AM -0700, Joe Perches wrote: > > On Tue, 2013-10-29 at 09:27 +0100, Markus Pargmann wrote: > > > This patch speeds up the rx_poll function by reducing the number of > > > register reads. > > [] > > > 125kbit

Re: [PATCH v2] can: c_can: Speed up rx_poll function

2013-10-29 Thread Markus Pargmann
On Tue, Oct 29, 2013 at 01:34:48AM -0700, Joe Perches wrote: > On Tue, 2013-10-29 at 09:27 +0100, Markus Pargmann wrote: > > This patch speeds up the rx_poll function by reducing the number of > > register reads. > [] > > 125kbit: > > Function HitTime

Re: [PATCH v2] can: c_can: Speed up rx_poll function

2013-10-29 Thread Joe Perches
On Tue, 2013-10-29 at 09:27 +0100, Markus Pargmann wrote: > This patch speeds up the rx_poll function by reducing the number of > register reads. [] > The third change is to replace the for-loop by a find_next_bit loop. You need to update the commit message. > diff --git a/drivers/net/can/c_can/c