Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28744
b: refs/heads/master
c: b537446
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jun 9, 2006
1 parent 6cb82de commit 5b07056
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: e9370ae15dc2f8ba1e1889ce26f13cda565b6ecb
refs/heads/master: b53744612f276ad20c5d7ef33ac991ec13101417
4 changes: 2 additions & 2 deletions trunk/drivers/char/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b07056

Please sign in to comment.