[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] serial: don't waste space allocated for the tx buffer(s)
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1343375840 -7200 # Node ID 3298156d6cfa9bfe3db5a7c8f175a753c62550d4 # Parent 131148d57fa2a4c6dfe96c73e527ef9e028b6e90 serial: don't waste space allocated for the tx buffer(s) We're allocating minimally a full page, so no reason to not also use all that space. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r 131148d57fa2 -r 3298156d6cfa xen/drivers/char/serial.c --- a/xen/drivers/char/serial.c Thu Jul 26 19:02:44 2012 +0100 +++ b/xen/drivers/char/serial.c Fri Jul 27 09:57:20 2012 +0200 @@ -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-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |