mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
tty: Move tty_write_message out of kernel/printk
This is pure tty code so put it in the tty layer where it can be with the locking relevant material it uses Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
452a00d2ee
commit
95f9bfc6b7
2 changed files with 25 additions and 16 deletions
|
|
@ -1291,22 +1291,6 @@ static int __init disable_boot_consoles(void)
|
|||
}
|
||||
late_initcall(disable_boot_consoles);
|
||||
|
||||
/**
|
||||
* tty_write_message - write a message to a certain tty, not just the console.
|
||||
* @tty: the destination tty_struct
|
||||
* @msg: the message to write
|
||||
*
|
||||
* This is used for messages that need to be redirected to a specific tty.
|
||||
* We don't put it into the syslog queue right now maybe in the future if
|
||||
* really needed.
|
||||
*/
|
||||
void tty_write_message(struct tty_struct *tty, char *msg)
|
||||
{
|
||||
if (tty && tty->ops->write)
|
||||
tty->ops->write(tty, msg, strlen(msg));
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined CONFIG_PRINTK
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue