[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200910031527.43660.oliver@neukum.org>
Date: Sat, 3 Oct 2009 15:27:43 +0200
From: Oliver Neukum <oliver@...kum.org>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Johan Hovold <jhovold@...il.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Greg Kroah-Hartman" <gregkh@...e.de>,
Michael Trimarchi <trimarchi@...dalf.sssup.it>,
linux-usb@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: ftdi_sio: Remove tty->low_latency.
Am Samstag, 3. Oktober 2009 15:18:07 schrieb Alan Cox:
> The generic driver is a very bad example to follow in some areas but
> this looks a big improvement. There are some patches reworking the
> generic code to use kfifo on the output side which make it vastly better.
> Not sure where the relevant google submissions went ?
They have been included into rc1.
> > - spin_lock_irqsave(&priv->rx_lock, flags);
> > - priv->rx_flags &= ~(THROTTLED | ACTUALLY_THROTTLED);
> > - spin_unlock_irqrestore(&priv->rx_lock, flags);
> > + spin_lock_irqsave(&port->lock, flags);
> > + port->throttled = 0;
> > + spin_unlock_irqrestore(&port->lock, flags);
>
> If you only have a single bit use the set_bit/clear_bit/test_and_xxx_bit
> stuff as it's faster on most boxes
I think we cannot do with less than two flags, whose transition has
to be atomic here.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists