From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Introducing my own interrupt in dosemu.
Date: Wed, 21 Jul 2004 20:26:24 +0400 [thread overview]
Message-ID: <40FE9930.4070607@aknet.ru> (raw)
Hello.
Wartan Hachaturow wrote:
> At irq frequencies of, say, 128 HZ, I've faced a "lost interrupts"
> Are there any common ways to deal with serialization of interrupts
Yes, see the timer code (as you already did,
pic_sched() is from there).
Doing pic_sched() before do_irq() should
do the trick for the periodic interrupts.
However, as your interrupt is not periodic
but rather a signal-driven, this may not be
what you want.
The easiest way around may be this: in
your signal handler you increment the counter
and call pic_request().
In the IRQ handler function you decrement
the counter, and if it is >0, you do
pic_request() right there, before do_irq().
This will compensate the lost irqs.
Something like that is done in
raw_mouse_getevents().
Maybe we need a better queueing mechanism,
but so far noone needed it and I think one
was removed 5 years ago.
next reply other threads:[~2004-07-21 16:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-21 16:26 Stas Sergeev [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-07-16 11:18 Introducing my own interrupt in dosemu Stas Sergeev
2004-07-21 13:46 ` Wartan Hachaturow
2004-07-16 10:25 Wartan Hachaturow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40FE9930.4070607@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox