kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Regarding threaded irq
@ 2011-02-28 12:23 anish singh
  2011-03-01  5:11 ` spinlock cp
  2011-03-03 13:41 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: anish singh @ 2011-02-28 12:23 UTC (permalink / raw)
  To: kernelnewbies

I have a touch driver which is not yet using threded_irq.So i am planning to
change it to
use threaded_irq.

In the current handler they are first disabling the irq line and then
calling the single threaded
workqueue to do the rest of the task and when the task is completed i.e. in
the end of workqueue
function they are enabling the irq line.

So my question is if i change it to use threaded_irq.In the handler should i
also enable or disable
the irq as is done in the case of present handler OR i don't need to do this
step?
---i think IRQF_ONESHOT will do this for me right?

I want this threaded handler to be executing as soon as possible as i want
the latency between the
touch by the user and response to be minimum.Is there any way to achieve
this?

FYI... handler contains some I2C transfer + reporting co-ordinates to Input
core.

Does the above usecase justify changing to threaded_irq??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110228/ca184200/attachment.html 

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

end of thread, other threads:[~2011-03-04  5:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 12:23 Regarding threaded irq anish singh
2011-03-01  5:11 ` spinlock cp
2011-03-01  5:19   ` anish singh
2011-03-03 13:41 ` Thomas Petazzoni
2011-03-04  5:32   ` anish singh

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).