/* set_baud sets the baud rate to the rate defined by baudcode  */
static void set_baud(struct tty_struct *tty, speed_t baudrate)
/* set_baud sets the baud rate to the rate defined by baudcode  */
static void set_baud(struct tty_struct *tty, speed_t baudrate)
{
	struct ktermios old_termios;
	mutex_lock(&tty->termios_mutex);
	old_termios =*(tty->termios);
	tty_encode_baud_rate(tty, baudrate, baudrate);
	tty->ops->set_termios(tty, &old_termios);
	mutex_unlock(&tty->termios_mutex);
}