Commit c31f3377 authored by Federico Vaga's avatar Federico Vaga

sw:drv: [bugfix] replace flip_buffer_push() with schedule_flip()

a9c3f68 tty: Fix low_latency BUG

Use directly the tty_schedule_flip(), when running on older kernel
the tty_flip_buffer_push() may try to run flush_to_ldisc() in interrupt
context.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@vaga.pv.it>
parent c5fb948b
......@@ -36,9 +36,9 @@ static inline void trtl_tty_insert_flip_char(struct trtl_cpu *cpu,
static inline void trtl_tty_flip_buffer_push(struct trtl_cpu *cpu)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
tty_flip_buffer_push(cpu->tty_port.tty);
tty_schedule_flip(cpu->tty_port.tty);
#else
tty_flip_buffer_push(&cpu->tty_port);
tty_schedule_flip(cpu->tty_port);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment