summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPhilip Cuadra <philipcuadra@google.com>2017-06-12 15:04:50 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:34 +0200
commit8c5bbe67b5ebb84836cd198fb65fc52e825ea9d3 (patch)
tree6d4017e8cab522186718d589f82991476cb70304 /include/linux
parent642b725c9cc052c2c1f2eaf44c34d7ffa8b4290f (diff)
tty: add tty_port_set_policy function
This function allows the port's scheduling policy to be changed. Some tty ports (like Bluetooth ones), need a higher priority to reduce jitter. Bug: 36106419 Test: Bluetooth audio Change-Id: If11e21c55924314910d602573c735c6afae09709 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tty.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 67e46308ca99..1c1bb90f6819 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -582,6 +582,8 @@ static inline int tty_port_users(struct tty_port *port)
{
return port->count + port->blocked_open;
}
+extern int tty_port_set_policy(struct tty_port *port, int policy,
+ int sched_priority);
extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
extern int tty_unregister_ldisc(int disc);