Commit 53c5ee2c authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman

TTY: move ldisc data from tty_struct: simple members

Here we start moving all the n_tty related bits from tty_struct to
the newly defined n_tty_data struct in n_tty proper.

In this patch primitive members and bits are moved. The rest will be
done per-partes in the next patches.
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 70ece7a7
This diff is collapsed.
...@@ -2932,7 +2932,6 @@ void initialize_tty_struct(struct tty_struct *tty, ...@@ -2932,7 +2932,6 @@ void initialize_tty_struct(struct tty_struct *tty,
tty_ldisc_init(tty); tty_ldisc_init(tty);
tty->session = NULL; tty->session = NULL;
tty->pgrp = NULL; tty->pgrp = NULL;
tty->overrun_time = jiffies;
tty_buffer_init(tty); tty_buffer_init(tty);
mutex_init(&tty->legacy_mutex); mutex_init(&tty->legacy_mutex);
mutex_init(&tty->termios_mutex); mutex_init(&tty->termios_mutex);
......
...@@ -270,13 +270,8 @@ struct tty_struct { ...@@ -270,13 +270,8 @@ struct tty_struct {
* historical reasons, this is included in the tty structure. * historical reasons, this is included in the tty structure.
* Mostly locked by the BKL. * Mostly locked by the BKL.
*/ */
unsigned int column;
unsigned char lnext:1, erasing:1, raw:1, real_raw:1, icanon:1;
unsigned char closing:1; unsigned char closing:1;
unsigned char echo_overrun:1;
unsigned short minimum_to_wake; unsigned short minimum_to_wake;
unsigned long overrun_time;
int num_overrun;
unsigned long process_char_map[256/(8*sizeof(unsigned long))]; unsigned long process_char_map[256/(8*sizeof(unsigned long))];
char *read_buf; char *read_buf;
int read_head; int read_head;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment