Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/bonding/bond_main.c drivers/net/via-velocity.c drivers/net/wireless/iwlwifi/iwl-agn.c
This commit is contained in:
@@ -70,12 +70,13 @@ struct tty_buffer {
|
||||
|
||||
/*
|
||||
* We default to dicing tty buffer allocations to this many characters
|
||||
* in order to avoid multiple page allocations. We assume tty_buffer itself
|
||||
* is under 256 bytes. See tty_buffer_find for the allocation logic this
|
||||
* must match
|
||||
* in order to avoid multiple page allocations. We know the size of
|
||||
* tty_buffer itself but it must also be taken into account that the
|
||||
* the buffer is 256 byte aligned. See tty_buffer_find for the allocation
|
||||
* logic this must match
|
||||
*/
|
||||
|
||||
#define TTY_BUFFER_PAGE ((PAGE_SIZE - 256) / 2)
|
||||
#define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)
|
||||
|
||||
|
||||
struct tty_bufhead {
|
||||
@@ -223,6 +224,7 @@ struct tty_port {
|
||||
wait_queue_head_t close_wait; /* Close waiters */
|
||||
wait_queue_head_t delta_msr_wait; /* Modem status change */
|
||||
unsigned long flags; /* TTY flags ASY_*/
|
||||
unsigned char console:1; /* port is a console */
|
||||
struct mutex mutex; /* Locking */
|
||||
struct mutex buf_mutex; /* Buffer alloc lock */
|
||||
unsigned char *xmit_buf; /* Optional buffer */
|
||||
|
||||
Reference in New Issue
Block a user