From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: When to use threaded interrupts?
Date: Tue, 15 Sep 2015 12:05:13 -0700 [thread overview]
Message-ID: <20150915190513.GA19292@kroah.com> (raw)
In-Reply-To: <CADxo8W+sYpETN_t76KX+hV3vcu_er4aNAiKCrwQsKtnU-yPQNg@mail.gmail.com>
On Tue, Sep 15, 2015 at 09:02:24PM +0300, Kosta Zertsekel wrote:
> >> On 10 September 2015 at 20:49, Kosta Zertsekel <zertsekel@gmail.com>
> >> Also, I see that in 4.2 there are only ~76 drivers that use threaded
> >> interrupt:
> >> ```
> >> $ git grep -l IRQ_WAKE_THREAD | sort | grep -v "\.h" | wc -l
> >> 76
> >> ```
>
> > On Sun, Sep 13, 2015 at 2:16 PM, Rami Rosen <roszenrami@gmail.com> wrote:
> > This kernel and older ones include device drivers which use threaded IRQs
> > (call request_threaded_irq(), etc).
> > For example, many of the driver under drivers/input/touchscreen are
> > using threaded IRQs:
> > Following link is from kernel 3.18:
> > http://lxr.free-electrons.com/source/drivers/input/touchscreen/ucb1400_ts.c?v
> =3.18
> >
> > How did you came to the conclusion that this kernel does not support
> > threaded IRQs ? could it be that you simply do not use device drivers
> > that use this mechanism ?
>
> In the given touch screen driver request_threaded_irq() provides NULL
> for the thread function pointer. Hence, the non-threaded IRQ mechanism
> is actually being used.? This is why I grepped for IRQ_WAKE_THREAD and
> not for request_threaded_irq.
>
> So, the questions remains.
> Why only ~76 drivers use the threaded IRQ mechanism?
Because people have not converted older code to the newer mechanism.
> What are the cons of the threaded IRQ mechanism?
Slower throughput and added complexity.
prev parent reply other threads:[~2015-09-15 19:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 17:49 When to use threaded interrupts? Kosta Zertsekel
2015-09-10 20:09 ` Rami Rosen
2015-09-13 6:24 ` Kosta Zertsekel
2015-09-13 11:16 ` Rami Rosen
2015-09-15 18:02 ` Kosta Zertsekel
2015-09-15 19:05 ` Greg KH [this message]
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=20150915190513.GA19292@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).