[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091208135510.ffd75637.akpm@linux-foundation.org>
Date: Tue, 8 Dec 2009 13:55:10 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Paul Fulghum <paulkf@...rogate.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] synclink_gt dropped transmit data bugfix
On Tue, 08 Dec 2009 16:06:50 -0600
Paul Fulghum <paulkf@...rogate.com> wrote:
> + /* check required buffer space */
> + bufs_needed = (size/DMABUFSIZE);
> + if (size % DMABUFSIZE)
> + ++bufs_needed;
bufs_needed = DIV_ROUND_UP(size, DMABUFSIZE);
?
That unsent_tbufs() call looks like it might be expensive.
--
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