mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [TTY] overrun notify issue during 5 minutes after booting
@ 2005-03-14 14:17 moreau francis
  2005-03-15  5:14 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: moreau francis @ 2005-03-14 14:17 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


--- Andrew Morton <akpm@osdl.org> wrote:
> moreau francis <francis_moreau2000@yahoo.fr> wrote:
> 
> How does this look?
> 

It works well though I haven't tested the second
correction. But it looks good...
By the way, is it safe in "n_tty_receive_overrun" to
call
"printk" ? because the former can be called from IT
context...

    Francis 


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [TTY] overrun notify issue during 5 minutes after booting
@ 2005-03-14  9:31 moreau francis
  2005-03-14  9:51 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: moreau francis @ 2005-03-14  9:31 UTC (permalink / raw)
  To: linux-kernel

I noticed that TTY is not able to notify overrun issue
in "n_tty_receive_overrun". Actually it's because of
"time_before" macro which tests "tty->overrun_time" 
(equals to 0) against "jiffies - HZ" (something very
big
after booting).
I guess a simple way to solve it, is to initialize
"tty->overrun_time" to "jiffies". But it won't work if
an overrun appear after a very long while....

Thanks

    Francis


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-15  5:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-14 14:17 [TTY] overrun notify issue during 5 minutes after booting moreau francis
2005-03-15  5:14 ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2005-03-14  9:31 moreau francis
2005-03-14  9:51 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®