mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
tty: Replace TTY_THROTTLED bit tests with tty_throttled()
Abstract TTY_THROTTLED bit tests with tty_throttled(). Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
18900ca65a
commit
97ef38b821
21 changed files with 27 additions and 23 deletions
|
@ -365,6 +365,11 @@ static inline bool tty_io_error(struct tty_struct *tty)
|
|||
return test_bit(TTY_IO_ERROR, &tty->flags);
|
||||
}
|
||||
|
||||
static inline bool tty_throttled(struct tty_struct *tty)
|
||||
{
|
||||
return test_bit(TTY_THROTTLED, &tty->flags);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TTY
|
||||
extern void console_init(void);
|
||||
extern void tty_kref_put(struct tty_struct *tty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue