Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259157
b: refs/heads/master
c: 8c2381a
h: refs/heads/master
i:
  259155: 7a78af7
v: v3
  • Loading branch information
Hendrik Brueckner authored and Benjamin Herrenschmidt committed Jul 19, 2011
1 parent 11f29ce commit 9901c4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63f21a56f1cc0b800a4c00349c59448f82473d19
refs/heads/master: 8c2381af0d3ef62a681dac5a141b6dabb27bf2e1
8 changes: 5 additions & 3 deletions trunk/drivers/tty/hvc/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ static void hvc_console_print(struct console *co, const char *b,
} else {
r = cons_ops[index]->put_chars(vtermnos[index], c, i);
if (r <= 0) {
/* throw away chars on error */
i = 0;
/* throw away characters on error
* but spin in case of -EAGAIN */
if (r != -EAGAIN)
i = 0;
} else if (r > 0) {
i -= r;
if (i > 0)
Expand Down Expand Up @@ -448,7 +450,7 @@ static int hvc_push(struct hvc_struct *hp)

n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf);
if (n <= 0) {
if (n == 0) {
if (n == 0 || n == -EAGAIN) {
hp->do_wakeup = 1;
return 0;
}
Expand Down

0 comments on commit 9901c4b

Please sign in to comment.