|
@@ -553,7 +553,6 @@ static int hvc_chars_in_buffer(struct tty_struct *tty)
|
|
|
|
|
|
#define HVC_POLL_READ 0x00000001
|
|
|
#define HVC_POLL_WRITE 0x00000002
|
|
|
-#define HVC_POLL_QUICK 0x00000004
|
|
|
|
|
|
static int hvc_poll(struct hvc_struct *hp)
|
|
|
{
|
|
@@ -568,6 +567,7 @@ static int hvc_poll(struct hvc_struct *hp)
|
|
|
/* Push pending writes */
|
|
|
if (hp->n_outbuf > 0)
|
|
|
hvc_push(hp);
|
|
|
+
|
|
|
/* Reschedule us if still some write pending */
|
|
|
if (hp->n_outbuf > 0)
|
|
|
poll_mask |= HVC_POLL_WRITE;
|
|
@@ -680,7 +680,7 @@ int khvcd(void *unused)
|
|
|
poll_mask |= HVC_POLL_READ;
|
|
|
if (hvc_kicked)
|
|
|
continue;
|
|
|
- if (poll_mask & HVC_POLL_QUICK) {
|
|
|
+ if (poll_mask & HVC_POLL_WRITE) {
|
|
|
yield();
|
|
|
continue;
|
|
|
}
|