lkml.org 
[lkml]   [2005]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.13-mm3
Sonny Rao napsal(a):

>On Mon, Sep 12, 2005 at 05:49:45PM -0400, Sonny Rao wrote:
>
>
>>--- linux-2.6.13-mm3/drivers/char/hvc_console.c~orig 2005-09-12 16:37:14.434077464 -0500
>>+++ linux-2.6.13-mm3/drivers/char/hvc_console.c 2005-09-12 16:37:25.466998360 -0500
>>@@ -597,7 +597,7 @@ static int hvc_poll(struct hvc_struct *h
>>
>> /* Read data if any */
>> for (;;) {
>>- count = tty_buffer_request_room(tty, N_INBUF);
>>+ int count = tty_buffer_request_room(tty, N_INBUF);
>>
>> /* If flip is full, just reschedule a later read */
>> if (count == 0) {
>>@@ -633,7 +633,7 @@ static int hvc_poll(struct hvc_struct *h
>> tty_insert_flip_char(tty, buf[i], 0);
>> }
>>
>>- if (tty->flip.count)
>>+ if (tty->buf.tail->used)
>>
>>
Is there any better way to gather this info? I think, that this was my
bad idea. Some encapsulation needed.

thanks,

--
Jiri Slaby www.fi.muni.cz/~xslaby
~\-/~ jirislaby@gmail.com ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-13 02:58    [W:0.099 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site