From 8c5bbe67b5ebb84836cd198fb65fc52e825ea9d3 Mon Sep 17 00:00:00 2001 From: Philip Cuadra Date: Mon, 12 Jun 2017 15:04:50 -0700 Subject: 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 --- include/linux/tty.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') 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); -- cgit v1.2.3