lkml.org 
[lkml]   [2009]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] Use kfifo to buffer USB generic serial writes
On Fri, Aug 14, 2009 at 10:20:39PM +0100, Alan Cox wrote:
> > + spin_lock_irqsave(&port->write_fifo_lock, flags);
> > + chars = __kfifo_len(port->write_fifo);
> > + spin_unlock_irqrestore(&port->write_fifo_lock, flags);
>
> Any reason for not using kfifo_len() ?

Nope. At one time there was a bit more code protected here and when I took it
out, I missed the opportunity to squash it down. I'll incorporate this with
any other changes that come in.

> Alan


\
 
 \ /
  Last update: 2009-08-14 23:47    [W:0.040 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site