Another smd_tty patch closer to LeTama's since I still managed to crash things with the last one.

This commit is contained in:
Jon Benson 2010-12-06 19:57:39 +11:00
parent 28ac03478b
commit 51e39b55ac

View File

@ -47,6 +47,7 @@ static void smd_tty_work_func(struct work_struct *work)
{
unsigned char *ptr;
int avail;
int failcnt = 0;
struct smd_tty_info *info = container_of(work,
struct smd_tty_info,
@ -90,10 +91,11 @@ static void smd_tty_work_func(struct work_struct *work)
tty->low_latency = 1;
tty_flip_buffer_push(tty);
} else {
failcnt++;
printk(KERN_ERR "smd_tty_work_func: tty_prepare_flip_string fail\n");
tty->low_latency = 0;
tty_flip_buffer_push(tty);
break;
if(failcnt > 2) {
break;
}
}
}