From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] serial: don't waste space allocated for the tx buffer(s) Date: Thu, 26 Jul 2012 16:29:19 +0100 Message-ID: References: <501178C40200007800090A6E@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <501178C40200007800090A6E@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org On 26/07/2012 16:05, "Jan Beulich" wrote: > We're allocating minimally a full page, so no reason to not also use > all that space. > > Signed-off-by: Jan Beulich Acked-by: Keir Fraser > --- a/xen/drivers/char/serial.c > +++ b/xen/drivers/char/serial.c > @@ -483,8 +483,8 @@ void __init serial_async_transmit(struct > BUG_ON(!port->driver->tx_empty); > if ( port->txbuf != NULL ) > return; > - if ( serial_txbufsz < 512 ) > - serial_txbufsz = 512; > + if ( serial_txbufsz < PAGE_SIZE ) > + serial_txbufsz = PAGE_SIZE; > while ( serial_txbufsz & (serial_txbufsz - 1) ) > serial_txbufsz &= serial_txbufsz - 1; > port->txbuf = alloc_xenheap_pages( > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel