/* Note: nobody should set the TTY_LDISC bit except via this function. Clearing directly is allowed.  */
void tty_ldisc_enable(struct tty_struct *tty)
/* Note: nobody should set the TTY_LDISC bit except via this function. Clearing directly is allowed.  */
void tty_ldisc_enable(struct tty_struct *tty)
{
	set_bit(TTY_LDISC, &tty->flags);
	clear_bit(TTY_LDISC_CHANGING, &tty->flags);
	wake_up(&tty_ldisc_wait);
}