diff options
| author | Philip Cuadra <philipcuadra@google.com> | 2017-06-12 15:47:19 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:34 +0200 |
| commit | 39211e0b21d8eba20e1e04eef528b44590986329 (patch) | |
| tree | 6951006230e3d3c99e4a41be54b2879e60c3c62e /drivers/tty | |
| parent | 8c5bbe67b5ebb84836cd198fb65fc52e825ea9d3 (diff) | |
msm_serial_hs: make the Bluetooth tty thread RT
For Bluetooth, the tty kthread should be RT in order to avoid scheduling
delays.
Bug: 36106419
Test: play bluetooth audio, verify tty kthread runs at RT via systrace
Change-Id: I441dd10d22f8831d055166bcd1ff9f01e5ca13d4
Signed-off-by: Philip Cuadra <philipcuadra@google.com>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/serial/msm_serial_hs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c index 844c7617b9e6..fd191761bfa1 100644 --- a/drivers/tty/serial/msm_serial_hs.c +++ b/drivers/tty/serial/msm_serial_hs.c @@ -62,6 +62,7 @@ #include <linux/ipc_logging.h> #include <asm/irq.h> #include <linux/kthread.h> +#include <uapi/linux/sched.h> #include <linux/msm-sps.h> #include <linux/platform_data/msm_serial_hs.h> @@ -3394,6 +3395,7 @@ static void msm_serial_hs_rt_init(struct uart_port *uport) msm_uport->pm_state = MSM_HS_PM_SUSPENDED; mutex_unlock(&msm_uport->mtx); pm_runtime_enable(uport->dev); + tty_port_set_policy(&uport->state->port, SCHED_FIFO, 1); } static int msm_hs_runtime_suspend(struct device *dev) |
