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>
This commit is contained in:
parent
0e265e1562
commit
5459b384f2
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue