Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: tty_port,usb-console: Fix usb serial console open/close regression tty: cpm_uart: use resource_size() tty_buffer: Fix distinct type warning hvc_console: Fix race between hvc_close and hvc_remove uartlite: Fix build on sparc. tty: Take a 256 byte padding into account when buffering below sub-page units Revert "tty: Add a new VT mode which is like VT_PROCESS but doesn't require a VT_RELDISP ioctl call"
This commit is contained in:
+6
-4
@@ -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 */
|
||||
|
||||
+1
-2
@@ -27,7 +27,7 @@ struct vt_mode {
|
||||
#define VT_SETMODE 0x5602 /* set mode of active vt */
|
||||
#define VT_AUTO 0x00 /* auto vt switching */
|
||||
#define VT_PROCESS 0x01 /* process controls switching */
|
||||
#define VT_PROCESS_AUTO 0x02 /* process is notified of switching */
|
||||
#define VT_ACKACQ 0x02 /* acknowledge switch */
|
||||
|
||||
struct vt_stat {
|
||||
unsigned short v_active; /* active vt */
|
||||
@@ -38,7 +38,6 @@ struct vt_stat {
|
||||
#define VT_SENDSIG 0x5604 /* signal to send to bitmask of vts */
|
||||
|
||||
#define VT_RELDISP 0x5605 /* release display */
|
||||
#define VT_ACKACQ 0x02 /* acknowledge switch */
|
||||
|
||||
#define VT_ACTIVATE 0x5606 /* make vt active */
|
||||
#define VT_WAITACTIVE 0x5607 /* wait for vt active */
|
||||
|
||||
Reference in New Issue
Block a user